Formats: the catch of CSV · JSON · XML · HTML · PDF.
CSV: no types or nesting, delimiters/quoting break it. JSON: nesting must be flattened. XML: verbose. HTML: layout changes break scrapers. PDF: made for display, layout and tables lost on extraction.
3
New cards
Materialised vs virtual integration: good and bad of each.
Materialised (warehouse + ETL): fast queries, heavy analytics / stale between loads. Virtual (mediator): always up to date / slower, sources must be online.
4
New cards
GAV vs LAV in one line.
GAV: global schema defined over the sources → easy queries, hard to add sources. LAV: each source defined over the global schema → easy to add sources, harder query rewriting.
5
New cards
What is the order of the integration words: ETL, warehouse, mediator, GAV/LAV?
Two ways to build a unified view: materialised = ETL fills a warehouse; virtual = a mediator queries live sources. GAV/LAV are the two ways the mediator maps the global schema to sources.
6
New cards
Pick the store by workload: e-commerce, social media, search engine.
E-commerce: transactions → relational, ACID, reliability and security first. Social media: mostly reads of images/video → bandwidth first, ACID relaxed (NoSQL). Search engine: offline index → ACID relaxed.
7
New cards
Why did NoSQL appear?
To scale to very large data / write throughput (horizontally), with a flexible, dynamic schema and no fixed tables or joins. It relaxes ACID.
8
New cards
Relational vs document vs graph: best when?
Relational: transactions, many-to-one look-ups, consistency. Document: one-to-many tree-shaped data loaded together. Graph: many-to-many relationships central (social, maps).
9
New cards
Embed or reference? Give the rule.
Embed one-to-many data owned by one parent and read together. Reference (by ID) data that is shared: many-to-one, many-to-many.
10
New cards
The kinds of object-relational impedance mismatch.
Granularity (one object ↔ several tables), identity (object identity vs primary key), navigation (follow references vs joins), plus inheritance/subtypes and associations.
11
New cards
ORM: two limits.
Hidden, sometimes inefficient SQL (the N+1 query problem) and less control / harder tuning.
12
New cards
Metadata types (tutor's slide) and why metadata matters.
Descriptive, administrative, structural, technical/provenance. It lets a schema be created, data be discovered, integrated and documented; Haibo: "as important as the data".