1 Concepción de Sistemas de Información Instituto de Computación – Facultad de Ingeniería – Universidad de la República Estudio de modelos y técnicas de.

Slides:



Advertisements
Presentaciones similares
Control en cascada.
Advertisements

Hace y hacía Hace tres meses que vivo aquí.
KIND OF FRACTIONS. PROPER FRACTIONS Mixed Fractions or Improper Fractions.
¿Qué hora es? What time is it?. ¿Qué hora es? It’s 1:00 Es la una (notice we do not say uno for time but una) 1:00 is the ONLY time where we say “Es la…”
Analisis y Diseño de Algoritmos Tema: Grafos 3ra Parte
Preterit Stem Changing Yasmin, Tenzin, Gaby. What is a preterit stem changing verb? It is a verb in the past tense that has stem changes. One letter changes.
Los verbos regulares – ar What is an infinitive? An infinitive in both Spanish and English is the base form of the verb. In English, the infinitive.
Copyright © 2011 Vista Higher Learning. All rights reserved ► You already know that ir and ser are irregular in the preterite. Here are some other.
Demonstrative Adjectives and Pronouns
Direct Object Pronouns Bill hit the ball. "Ball" receives the action of the verb "hit." Sherry reads the book. "Book" receives the action of the verb.
Demonstrative Adjectives and Pronouns
Pero and Sino. Pero and sino Both pero and sino mean but but they have different uses.
Reflexive verbs Los verbos reflexivos Reflexive verbs In this presentation, we are going to look at a special group of verbs called reflexive Let’s start.
Adjective Agreement Well, the same is true of adjectives. You can’t use the exact same word to describe “mujer” that you use to describe “hombre.” Remember.
4.1 Continuidad en un punto 4.2 Tipos de discontinuidades 4.3 Continuidad en intervalos.
Una introducción a los algoritmos del Parsing. Pregunta inicial… ¿Cómo se puede determinar si un código escrito en un lenguaje de programación tiene sintaxis.
The Normal Distribution To calculate the probability of a Normal distribution between a and b:
Objective: I can recognize and accurately use gender agreement. Do Now: Match the following Spanish and English words: 1. Pelirroja a. Good-looking 2.
POR QUÉ VS. PORQUE. ¿Por qué? = Why? *Note the accent on the letter e. * Also note that it is two separate words.
Notes #18 Numbers 31 and higher Standard 1.2
Irregular Verbs 2. Remember the verb “ver”? Remember how it’s irregular in the first person? veo vemos ves veis ve ven.
Subject pronouns In order to use verbs, you will need to learn about subject pronouns. A subject pronoun replaces the name or title of a person or thing.
Los verbos reflexivos Objective: To be able to talk about your daily routine. Getting ready for a special event.
Arboles B (búsqueda externa)
First Grade – High Frequency Word Reading Competition Classroom Competition Created by: Malene Golding School Improvement Officer: Kimberly Fonteno.
Los tiempos compuestos El presente perfecto El pluscuamperfecto.
ER and IR verbs ¡Hola! Hoy vamos a hablar de los verbos.
Spanish III. Sometimes you describe a noun with an adjective, and sometimes you use an entire clause to describe a noun, that is an adjective clause.
ALC 155 miércoles el 25 de mayo. Bienvenida Sientense SS – lado a lado Uno lee las preguntas en voz alta la otra persona contesta.
Article Notes 14/10/13 ¿Quién? is who ¿Qué? is what ¿Por qué? why ¿Dónde? where ¿Cuándo? when y ¿Cómo? how ¿Cuánto hay? how much is there.
Señorita Rojo Señor Amarillo Padre Verde Señora Azul La pistola La soga El cuchillo El dormitorio El cuarto de baño La cocinaEl salón Señorita Rojo Señor.
Indirect Object Pronouns
Las Preguntas (the questions) Tengo una pregunta… Sí, Juan habla mucho con el profesor en clase. No, Juan no habla mucho en clase. s vo s vo Forming.
Objetivo: How do we describe ourselves? Hagan Ahora: In your notebooks, conjugate ser into all six forms. When you receive your workbook, write your first.
PRETERIT TENSE REGULAR –AR VERB CONJUGATIONS To conjugate verbs that end in -AR, we need to do the following: Yo Tú Ud/él/ella Nosotros Vosotros Uds/ellos/ellas.
Tecnología y Estructura de Costos. Technologies u A technology is a process by which inputs are converted to an output. u E.g. labor, a computer, a projector,
Irregular Preterite Ir, Ser, Dar, Ver, Hacer. Irregular Preterite Verbs: ir, ser In the preterite, the forms of ser are the same as the forms of ir. The.
Time Telling time is rather easy. You only need to know the numbers up to 59 to be able to tell the time.
5 mitos sobre la seguridad de la tecnología.
Affirmative and Negative Words. Palabras Afirmativas algo alguien algún / alguno (a) siempre también something someone some always also.
REFLEXIVE VERBS In this presentation, we are going to look at a special group of verbs called reflexives. Let’s start out by thinking of the English verb.
SPANISH 8 TH GRADE With Señorita Hall Classes #1-5 – August- September 2013 Capítulo 1: Lectura 1 ● El cuento del gato Warm-Up In your carpeta fill out.
1 El Imperfecto del Subjuntivo Puedo identificar que es el imperfecto del subjuntivo. Puedo explicar los usos del imperfecto del subjuntivo. Puedo determinar.
Adverbs are words that describe how, when, and where actions take place. They can modify verbs, adjectives, and even other adverbs. In previous lessons,
INDIRECT OBJECT PRONOUNS. Indirect Object Pronouns The indirect object answers the question “To whom?” or “For whom? the action of the verb is performed.
Stem-Changing Verbs. Review: The Parts of a Verb Every verb has two parts: 1. 1.the stem 2. 2.the ending Ex: hablar infinitive -ar ….. ending habl …..
Copyright © 2008 Vista Higher Learning. All rights reserved  The conditional tense in Spanish expresses what you would do or what would happen under.
Stem-Changing Verbs. Review: The Parts of a Verb Every verb has two parts: 1. 1.the stem 2. 2.the ending The most basic form of a verb is called the infinitive.
MÉTODO CIENTÍFICO SCIENTIFIC METHOD. Observación Observation Scientists use observation skills to identify which problems they would like to solve Simply.
Capítulo 3.  The verb ir is an irregular verb.  It follows the same pattern as an –ar verb conjugation except in the yo form even though it is an –ir.
Gramática de 2A. YoINosotros/ Nosotras We TúYou ÉlHeEllosThey EllaSheEllasThey Ud.You (formal)Uds.You all Ellos is used to refer to “they” if there is.
Essential ?: How do I use these irregular verbs? How are they different than the verbs I already know?
10.4 Adverbs ANTE TODO  Adverbs are words that describe how, when, and where actions take place.  They can modify verbs, adjectives, and even other adverbs.
Verbos reflexivos Reflexive Verbs Telling what people do for themselves.
Los verbos reflexivos Reflexive Verbs.
Double Object Pronouns What happens when we have both direct and indirect object pronouns in the same sentence? What goes where? Information for this lesson.
Un juego de adivinanzas: ¿Dónde está el tesoro? A1B1C1D1E1F1 A4B4C4D4E4F4 A2B2C2D2E2F2 A5B5C5D5E5F5 A3B3C3D3E3F3 A6B6C6D6E6F6 Inténtalo de nuevo Inténtalo.
Antes de empezar – ¿Cómo se llaman estos quehaceres? (Necesito la tarea.)
Español 4 AMSCO páginas Los números Español 4 AMSCO páginas
El Objeto Directo Direct Object Pronoun Sra. Altamirano.
Conjugate –cer/-cir/-ger/-gir/ -guir verbs in the present tense.
Indirect Objects and Indirect Object Pronouns. Repaso: Direct Objects A Direct Object recieves the action of the verb It answers the question: Who? or.
Los verbos reflexivos Objective: To be able to talk about your daily routine. Getting ready for a special event.
Control de Gestión en las Entidades Públicas
The Present Tense of ser (to be) (El tiempo presente del verbo ser)
Los adjetivos demostrativos Notes #16 What is a demonstrative adjective in English? Demonstrative adjectives in English are simply the words: THISTHESE.
Las Preguntas (the questions) Tengo una pregunta… Sí, Juan habla mucho con el profesor en clase. No, Juan no habla mucho en clase. s vo s vo Forming.
Transcripción de la presentación:

1 Concepción de Sistemas de Información Instituto de Computación – Facultad de Ingeniería – Universidad de la República Estudio de modelos y técnicas de workflow en vista a la definición de un proceso para la carga y mantenimiento de data warehouses SEMINARIO Presentación día 13 con fecha 23/07/2001 Artículo:Efficient Resumption of Interrupted Warehouse Loads Expositor:Pablo Morales

2 Efficient Resumption of Interrupted Warehouse Loads Wilburt Juan Labio, Janet L. Wiener, Hector Garcia-Molina, Vlad Gorelik Presentación de una algoritmo (DR) de recuperación ante fallas en el proceso de carga y refresque del data warehouse. Dos características principales: 1. No impone un overhead en el tiempo de carga normal 2. Utiliza únicamente ciertas propiedades básicas de las transformaciones

3 Idea general y estrategia Otros Algoritmos: Rehacer toda la carga Dividir la entrada en lotes y procesarlos en secuencia Tomar “snapshots” periódicos del estado del workflow de carga Dividir el workflow en estados (identificarlos) y guardar resultados intermedios

4 Idea general y estrategia Algoritmo DR: No hay overhead en el proceso de carga normal No es necesario modificar los procesos de transformación Quién codifica los elementos de transformación (wrappers, etc) debe declarar si éstos cumplen alguna propiedades simples Explota la semántica del workflow de carga para ser selectivo al reasumir luego de una falla

5 Aportes Presentación del marco que describe los procesos de carga normales y con fallas identificando ciertas propiedades Presentación del algoritmo DR que filtra tuplas de entrada ASAP Conclusiones

6 Proceso de carga normal Definición: Secuencia de tuplas: T = [t 1..t n ] ; con atributos [a 1..a m ] Ejemplo de carga

7 Representación del workflow de carga con un Grafo Acíclico Dirigido (DAG): Proceso de carga normal

8 DAG Notación: XY YXYX YOYO X : Componente Y : Componente Y X : Parámetro de entrada del componente Y producido por X Y O : Parámetro de salida del componente Y Y X : Secuencia que instancia el parámetro de entrada Y X Y O : Secuencia que instancia el parámetro de salida Y O Y(... Y X...) = Y O : Y produce Y O procesando Y X (y otras secuencias) W : Secuencia que se carga en el warehouse en ausencia de fallas

9 Proceso de carga con falla Tipos de fallas: El algoritmo hace foco en fallas a nivel de sistema y no a nivel lógico Observación: Ante cualquier falla de cualquier componente solo un prefijo de la secuencia W es cargado en el warehouse Datos para re-asumir la carga: El prefijo de la secuencia de entrada al warehouse W Procedimientos provistos por los extractors GetAllReordered(), GetAll(), GetSubSet(), GetSuffix()

10 Propiedades para re-asumir la carga: En general, se deben contestar estas dos preguntas para evitar el re-proceso de tuplas: 1) Para una tupla dada del warehouse, cuales de las tuplas de Y X contribuyen a ella. 2) Cuándo es seguro filtrar esas tuplas de Y X (Same-set(Y )) If Y is an extractor then Same-set(Y ) = true if Y uses GetAll or GetAllReordered during resumption. Otherwise, Same-set(Y ) = true if  Y X : Same-set(X) and, given the same sets of input tuples, Y produces the same set of output tuples. Proceso de carga con falla

11 Definición: (Contributes, Contributors) Given transform Y, let Y(... Y X …) = Y O and Y(… Y ’ X...) = Y ’ O. Also let Y X = [x 1..x i-1 x i x i+1..x n ] and Y ’ X = [x 1..x i-1 x i+1..x n ]. Contributes(x i,y j ) = true, if y j  Y O and y j  Y ’ O.Otherwise, Contributes(xi,yj ) = false. Contributors( Y X, y j ) = T, where IsSubsequence( T, Y X ) and (  x i  T : Contributes(x i, y j )) and (  x i  Y X : Contributes(x i,y j )  x i  T ). Proceso de carga con falla

12 Proceso de carga con falla – Filtrado Seguro Propiedad: map-to-one(Y X ) Given transform Y with input parameter Y X, Y X is map-to-one if  Y X ;  Y O ;  x i  Y X : (Y (:::Y X :::) = Y O )  (  y j ; y k  Y O such that Contributes(x i,y j ) and Contributes(x i,y k ) and j  k).

13 XY YXYX ZYZY ZW WZWZ map-to-one  Subset-feasible(Y X ) Subset-feasible(Y X ) Given transform Y with input parameter Y X, Subset-feasible(Y X ) = true if Y is the warehouse inserter. Otherwise, Subset-feasible(Y X ) = true if Y X is map-to-one and  Z Y : Subset-feasible(Z Y ). Otherwise, Subset-feasible(Y X ) = false. Proceso de carga con falla – Filtrado Seguro Definición:

14 Proceso de carga con falla – Filtrado Seguro Propiedad: suffix-safe(Y X ) Given T = [t1::tn], let First( T ) =t1, Last( T ) =tn, and ti  T tj if ti is before tj in T or i = j. Given transform Y with input parameter Y X, Y X is suffix-safe if  Y X ;  Y O ;  yj ; yj+1  Y O : (Y (::: Y X :::) = Y O ) )(Last(Contributors(Y X, yj ))  Y X First(Contributors(Y X,yj+1))). If Contributors(YX, yj ) = [ ] or Contributors(YX, yj+1) = [ ], then Y X is not suffix-safe.

15 XY YXYX V1V2V3 X V1 X V2 X V3 Proceso de carga con falla – Filtrado Seguro Prefix-feasible(Y X ) Given transform Y with input parameter Y X, Prefix-feasible(Y X ) = true if Y is the warehouse inserter. Otherwise, Prefix-feasible(Y X ) = true if Y X is suffix-safe and  Z Y : Prefix-feasible( Z Y ). Otherwise, Prefix-feasible(Y X ) = false. Definición:

16 XY YXYX V1V2V3 X V1 X V2 X V3 Proceso de carga con falla – Filtrado Seguro in-det-out(Y ) Transform Y is in-det-out if Y produces the same output sequence whenever it processes the same input sequences. Propiedad:

17 XY YXYX V1V2V3 X V1 X V2 X V3 Proceso de carga con falla – Filtrado Seguro set-to-seq(Y X ) Given transform Y with input parameter Y X, Y X is set-to-seq if (Y is in-det-out) and (  Y X ; Y ’ X : (( Y X and Y ’ X have the same set of tuples) and (all other input parameters of Y receive the same sequence))  Y (::: Y X :::) =Y (::: Y ’ X :::)). Propiedad:

18 Observación: Dado un path desde una fuente hasta un componente Y, para que se cumpla Same-seq(Y X ) exijo que todos los componentes del path sean in-det-out, y si uno no lo es, entonces exijo que el siguiente sea set-to-seq (más fuerte) Proceso de carga con falla – Filtrado Seguro Same-seq(Y X ) If X is an extractor then Same-seq(Y X ) = true if X uses the GetAll re-extraction procedure. Otherwise, Same-seq(Y X ) = true if X is in-det-out and  X V : (Same-seq(X V ) or (X V is set-to-seq and Same-set(V ))). Otherwise, Same-seq(Y X ) = false. Definición:

19 Objetivo: Identificar las tuplas de una secuencia Y X que son contribuyentes a una tupla del warehouse w k Idea: Matchear los atributos que Y X y w k tienen en común Proceso de carga con falla – Ident. Contribuyentes

20 no-hidden-contributor(Y X ) Given transform Y with input parameter Y X, no-hidden- contributors(Y X ) if  Y X,  Y O,  yj  Y O,  xi  Contributors( Y X, yj ),  a  (Attrs(Y X )  Attrs(Y O )): (Y (::: Y X :::) = Y O )  (xi.a = yj.a). Propiedades a satisfacer para poder identificar los contribuyentes: Match con y j en Attrs(Y X )  Attrs(Y O ) Contributors( Y X, y j ) No-hidden-contributor(Y X ) Proceso de carga con falla – Ident. Contribuyentes

21 Propiedades a satisfacer para poder identificar los contribuyentes: Proceso de carga con falla – Ident. Contribuyentes CandAttrs(Y X,P) Let P be a path from input parameter Y X to the warehouse. There are three possibilities for CandAttrs(Y X, P): 1. If Y is the warehouse inserter, then CandAttrs(Y X, P) =Attrs(Y X ). 2. If  no-hidden-contributors(Y X ), then CandAttrs(Y X ; P) = [ ]. 3. Else CandAttrs(Y X, P) = CandAttrs(Z Y, P’ )  Attrs(Y X ), where P = [Y X Z Y ::W I ], and P’ is P excluding Y X. Definición:

22 Propiedades a satisfacer para poder identificar los contribuyentes: Proceso de carga con falla – Ident. Contribuyentes no-spurious-output( Y ) A transform Y produces no spurious output if  input parameters Y X,  Y X,  Y O,  yj  Y O : (Y (::: Y X :::) = Y O )  (Contributors( Y X,yj)  [ ]). Propiedad:

23 no-hidden-contributor(Y X ) = Se cumple si todas las tuplas de entrada Y X que contribuyen a una tupla de salida y j matchean con y j en Attrs(Y X )  Attrs(Y O ) CandAttrs(Y X, P) = Todos los atributos presentes en el path P desde Y X al warehouse. Estos atributos identifican a los potenciales contribuyentes de una tupla final w k idAttrs(Y X ) = Conjunto de atributos utilizados para identificar los contribuyentes de Y X a la tupla del warehouse w k. Los contribuyentes serán los que matcheen con w k en idAttrs(Y X ) Proceso de carga con falla – Ident. Contribuyentes Observaciones:

24 Por lo tanto: Dados w k y CandAttrs(Y X, P) puedo identificar a los potenciales contribuyentes de w k en Y X. Dados w k y idAttrsPath(Y X, P) puedo identificar a los contribuyentes de w k en Y X. Proceso de carga con falla – Ident. Contribuyentes

25 1. IdAttrs(Y X ) = KeyAttrs(Y X ) if KeyAttrs(Y X )  CandAttrs(Y X, P) and both Y and Z satisfy the no-spurious-output property. 2. IdAttrs(Y X ) = KeyAttrs(W Z ) if KeyAttrs(W Z )  CandAttrs(Y X, P). 3. IdAttrs(Y X ) = IdAttrs(Z Y ) if IdAttrs(Z Y )  CandAttrs(Y X, P). Proceso de carga con falla – Ident. Contribuyentes

26 IdAttrsPath(Y X,P), IdAttrs(Y X ) Let P be the only path from Y X to the warehouse. There are three possibilities for IdAttrsPath(Y X,P) (i.e., IdAttrs(Y X )). 1. If (KeyAttrs(Y X )  CandAttrs(Y X, P) and  Z V  P : Z V has no spurious output tuples), then (IdAttrsPath(Y X, P) = KeyAttrs(Y X )). 2. Otherwise, let Z V  P but Z V  Y X. Let P’ be the path from Z V to the warehouse. If (IdAttrsPath(Z V, P’)  [ ] and IdAttrsPath(Z V, P’)  CandAttrs(Y X, P)), then (IdAttrsPath(Y X,P) = IdAttrsPath(Z V,P’)). 3. Otherwise IdAttrsPath(Y X,P) =[ ]. Definición: Proceso de carga con falla – Ident. Contribuyentes