Course Hub
Jump to lecture notes, reusable concepts, original slides, and exam preparation.
Where to find concepts
Concept folders follow the lecture titles. Shared concepts stay in the lecture that introduces them and remain linked from later lessons.
Lecture 03 - Data Warehouse Conceptual and Logical Design/— Lecture 03 - Data Warehouse Conceptual and Logical Design (12 concepts)Lecture 06 - Data Lakes/— Lecture 06 - Data Lakes (1 concept)Lecture 07 - Data Mining Process/— Lecture 07 - Data Mining Process (reuses existing concepts)Lecture 08 - Data Preprocessing/— Lecture 08 - Data Preprocessing (3 concepts)Lecture 02 - Introduction to Data Warehousing/— Lecture 02 - Introduction to Data Warehousing (10 concepts)Lecture 01 - The Big Data Challenge/— Lecture 01 - The Big Data Challenge (15 concepts)Lecture 14 - Physical Access/— Lecture 14 - Physical Access to Data (2 concepts)Lecture 15 - Query Optimization/— Lecture 15 - Query Optimization (3 concepts)Lecture 16 - Physical Design/— Lecture 16 - Physical Design (3 concepts)Lecture 17 - Concurrency Control/— Lecture 17 - Concurrency Control (4 concepts)Lecture 18 - Reliability Management and Recovery/— Lecture 18 - Reliability Management and Recovery (3 concepts)Lecture 19 - Distributed Database Management Systems/— Lecture 19 - Distributed Database Management Systems (3 concepts)Lecture 20 - ElasticSearch/— Lecture 20 - ElasticSearch (3 concepts)Lecture 21 - Beyond Relational Databases/— Lecture 21 - Beyond Relational Databases (3 concepts)Lecture 22 - Introduction to MongoDB/— Lecture 22 - Introduction to MongoDB (2 concepts)
Connected course summary
Follow the explanations below to see how the ideas build on each other. Each concept is introduced before its link. Open Data Science and Database Technologies - Connected Reading Guide to read the summary on its own.
Data Science and Database Technologies - Connected Reading Guide
Read each explanation as one step in the course’s reasoning. The concept link follows its introduction; open it for detail or continue to the next paragraph. The summaries connect the supplied material, while source references and qualifications remain in the lecture and concept notes.
The Big Data Challenge
Follow observations from their source to a decision they might support. Each stage creates a question for the next: how to collect, store, prepare, analyze and interpret the evidence responsibly.
Begin where data comes from. Transactions, user activity and sensors generate observations; acquisition collects and transfers those observations into a usable system. Separating generation from collection helps identify missing coverage, delivery delays and preparation needs. Data Generation and Acquisition
Once collected, data can be difficult for several reasons. Volume concerns size, velocity concerns arrival rate, variety concerns formats, veracity concerns reliability, and value concerns useful outcomes. These dimensions explain why a large dataset alone does not define the whole challenge. Big Data and the Five Vs
Those challenges influence infrastructure choices. Storage holds the bytes, management systems organize access, and processing models determine how computations work over the data. Batch, stream and graph processing suit different tasks; moving computation toward data can reduce expensive transfers. Big Data Storage and Processing Models
Before choosing an algorithm, decide what the analysis should answer. Descriptive analysis summarizes what is present, predictive analysis estimates an outcome, and prescriptive analysis recommends an action under objectives and constraints. The same data can support these different questions. Descriptive Predictive and Prescriptive Analytics
To answer those questions, algorithms extract relationships represented as patterns, models or groups. Discovery produces something potentially useful, but usefulness still needs evaluation. A relationship appearing in data is not automatically a reliable explanation or a good basis for a decision. Data Mining and Patterns
This is why mining belongs inside a broader process. KDD connects selection, preprocessing, transformation, mining and interpretation, turning raw observations into assessed knowledge. Data science combines that preparation and analysis with the context needed to understand the result. Data Science and the KDD Process
Preparation must repair or account for problems in the inputs. Cleaning handles inconsistencies and noise; integration reconciles sources, identifiers, units and overlapping records. Outliers require investigation because an unusual value can represent either an error or an important event. Data Cleaning and Integration
With prepared data, one possible question is which items occur together. Association rules express co-occurrence: support measures how common a combination is overall, while confidence measures how often the consequent occurs among cases containing the antecedent. Neither establishes causation. Association Rules Support Confidence and Lift
Association-rule mining makes that question operational. Start with frequent itemsets, then form rules and compare support, confidence and lift. Apriori prunes candidates when an infrequent subset makes every larger set impossible; FP-growth compresses shared transaction prefixes into an FP-tree. Closed and maximal itemsets reduce redundant output, while taxonomies let analysis move between detailed tests and broader categories. Lecture 09 - Association Rules
A different question is what outcome to predict for a new observation. Classification predicts a category, while regression predicts a numeric quantity. In their usual supervised forms, both learn from examples with known targets, so target definition determines which problem we are solving. Classification and Regression
Classification makes the target explicit and learns a boundary or set of rules from labelled examples. Decision trees ask interpretable questions and use impurity measures to choose splits; pruning controls the risk of memorizing noise. Classification and Decision Trees
Other classifiers represent the same task differently. Random forests combine randomized trees, k-nearest neighbours vote among similar records, Naive Bayes compares class probabilities, SVMs maximize a separating margin and rule systems express conditions directly. Neural networks learn layered transformations, with CNNs suited to images and RNNs suited to sequences. Classification Methods and Model Tradeoffs Neural Networks for Classification
Evaluation must separate model construction from honest testing. Confusion matrices expose the kinds of mistakes, while precision, recall, F-measure and ROC analysis reveal trade-offs that overall accuracy can hide, especially for imbalanced classes. Classification Evaluation and Confusion Matrices
When target labels are unavailable or grouping is the goal, clustering finds similar observations. Outlier detection instead identifies unusual cases relative to a model or reference. Similarity depends on representation, and neither a cluster nor an outlier explains its own real-world cause. Clustering and Outlier Detection
Clustering can mean compact groups around centres, connected groups, nested groups or dense regions. K-means repeatedly assigns points to centroids, hierarchical methods build a merge tree whose linkage rule controls proximity, and DBSCAN connects dense core points while leaving isolated noise outside. Clustering Foundations and Cluster Types K-means Clustering and SSE Hierarchical Clustering and Linkage DBSCAN and Cluster Validity
Some relationships disappear if we ignore context. Sequence analysis preserves order, time-series analysis preserves temporal structure, and geospatial analysis considers location. Choosing a method therefore depends on whether changing order, timing or position changes the meaning of an observation. Sequence Time Series and Geospatial Mining
These methods need a project that connects them to a concrete decision. Define the question, scope, data, evaluation and maintenance needs, drawing on data, analytical, visualization, domain and business expertise. A technically successful model can still fail to answer the useful question. Data Science Project Design and Roles
Even a useful prediction needs careful interpretation. Explanations can describe a model globally or one prediction locally, but an observed association may reflect other influences. Confounding is a reason not to turn predictive relationships directly into claims about causes. Model Interpretability and Confounding
The evidence can also represent groups unevenly or encode existing inequalities. Collection, labels and modeling choices can produce systematically different outcomes, while proxy features can retain information about an omitted sensitive attribute. Evaluation must examine who the model works for and how. Algorithmic and Data Bias
Finally, useful patterns can disclose sensitive information. Removing names or publishing aggregates does not automatically prevent inferences about locations, activities or people. Privacy therefore belongs in collection, analysis and release decisions throughout the process. Privacy in Data Analytics
The full lecture develops these ideas with its own examples. Lecture 01 - The Big Data Challenge
Data Mining Process
The data-mining process makes the transition from prepared data to useful knowledge explicit. Data mining automatically extracts implicit, previously unknown and potentially useful information, represented as patterns. It is one stage inside KDD, not the whole process. Data Mining and Patterns
KDD proceeds through selection, preprocessing, transformation, data mining and interpretation. Selection chooses relevant observations; preprocessing repairs quality problems; transformation creates an analysis-ready representation; mining discovers patterns or builds models; interpretation decides whether the result is meaningful and useful. Data Science and the KDD Process
The source distinguishes descriptive methods, which summarize or describe existing data, from predictive methods, which use known variables to estimate unknown or future values. Association rules find co-occurrence, classification assigns known categories to new cases, and clustering discovers groups without predefined labels. Lecture 07 - Data Mining Process
The classification lecture develops this supervised-learning branch from decision trees to neural networks and then evaluates the resulting models. Lecture 10 - Classification
Data Preprocessing
Before mining, represent each object and attribute according to its meaning. Nominal attributes support equality, ordinal attributes add order, interval attributes add meaningful differences, and ratio attributes also support meaningful ratios. A number stored in a column does not automatically make that column a measurement. Data Types and Attribute Scales
Preparation handles noise, outliers, missing values, duplicates and incorrect values. Aggregation and sampling reduce volume; feature selection removes irrelevant or redundant columns; feature creation builds useful representations; discretization and binarization change the form of values; normalization makes scales comparable before distance calculations. Data Quality and Preparation
Similarity, distance and correlation answer different questions. Euclidean and Minkowski distances compare numeric vectors, Jaccard compares binary presence, cosine compares document-vector direction, and correlation measures linear association. A near-zero correlation does not rule out a strong nonlinear relationship, and correlation does not prove causation. Similarity Dissimilarity and Correlation
Introduction to Data Warehousing
Mining needs reliable, organized evidence. A warehouse provides the consistent historical foundation for repeated business analysis, separating it from day-to-day operations.
Operational systems record everyday business activity. Decision support asks broader questions across that activity, such as how demand changes over time. Business Intelligence (BI) turns business data into information for decisions; a separate warehouse supplies integrated historical data for that analysis. Decision Support BI and Data Warehouses
An analytical value needs context: revenue is a measure, while product, shop and time are dimensions. The grain defines exactly what one stored fact row represents. This choice determines both the detail available for analysis and what information is lost by summarizing. Dimensions Measures and Fact Grain
A relational star schema implements the dimensional view using tables. The central fact table stores measurements and references to their context; surrounding dimension tables describe products, shops and dates. Joining these tables lets an analyst group numerical results by meaningful business attributes. Star Schemas and Fact Tables
Once the grain is fixed, warehouse size depends on how many dimension combinations receive records. Many possible combinations may be empty, making the dataset sparse. Precomputed summaries can accelerate repeated analysis, but they require storage and maintenance and cannot replace detail needed for other questions. Warehouse Size Sparsity and Aggregation
With dimensions and measures in place, an analyst can calculate summaries and explore finer detail. OLAP supports this structured exploration, while data mining uses algorithms to discover patterns or build models. Locating a sales decline through drill-down helps focus investigation but does not establish its cause. OLAP Drill Down and Data Mining
Reliable comparisons require more than identical column layouts. ETL extracts source records, cleans and transforms them into agreed meanings and formats, then loads them into the warehouse. A common structure cannot fix incompatible revenue definitions or product identifiers without explicit reconciliation. ETL and Semantic Integration
An enterprise warehouse integrates information across the business, while a data mart focuses on a department or subject. A dependent mart draws from the warehouse; an independent mart draws directly from sources. Narrower scope can speed implementation, but separately chosen definitions make later integration harder. Data Warehouses and Data Marts
The analytical cube is a logical view rather than a requirement to store a literal array. ROLAP uses relational database structures, MOLAP uses specialized multidimensional storage, and HOLAP combines approaches. Data sparsity and access patterns help explain the implementation tradeoffs. ROLAP MOLAP and HOLAP
Stored values need definitions that explain their origin, transformations and intended use. Metadata describes this context as well as warehouse structures and query execution. It lets users and maintainers trace how a result was produced instead of assuming that a tidy number is trustworthy. Warehouse Metadata and Lineage
Separating analysis from transaction processing creates the source and warehouse levels. A three-level design adds a staging area that separates extraction and transformation from final loading. This intermediate workspace eases complex preparation but adds stored copies and management work. Two and Three Level Warehouse Architectures
The lecture develops the examples, source calculation and architectural tradeoffs. Lecture 02 - Introduction to Data Warehousing
Data Lakes
The warehouse provides curated historical evidence for recurring analytical questions. A data lake keeps broader source material available when future questions, formats and users are not known in advance. It can store relational data, CSV/JSON/XML, text, email, images, audio and transformed datasets. Data Lakes and Data Swamps
The key timing distinction is schema-on-write versus schema-on-read. A warehouse defines and reconciles structure before loading; a lake delays more interpretation until analysis. That flexibility supports discovery and machine learning, but it moves work toward cataloging, data wrangling, quality checking and semantic integration.
Operational data also depends on a DBMS that can store, retrieve and protect records. The optimizer chooses an access strategy, the buffer manager moves pages between storage and memory, concurrency control coordinates simultaneous work, and reliability management recovers from failures. DBMS Architecture and Query Processing
The optimizer’s choice depends on the physical access structure. Heap files support scans, ordered files preserve a sort key, B+-Trees support ordered equality and range access, hash indexes target exact equality, and bitmap indexes combine predicates on low-cardinality attributes. A clustered index keeps related data near the index order; an unclustered index follows pointers to data that may be scattered. Physical Access Structures and Access Methods Clustered and Unclustered Indexes Lecture 14 - Physical Access to Data
The DBMS can now choose how to execute the request. Query optimization checks the SQL, builds a relational-algebra tree, applies equivalent rewrites such as selection and projection pushdown, and compares physical plans using data profiles. Cost depends on page I/O, CPU work, access methods, join order and join algorithm. Query Optimization Pipeline and Relational Algebra Query Cost Estimation and Access Selection Join Algorithms and Execution Plan Selection Lecture 15 - Query Optimization
Choosing how tables and indexes actually live on disk turns those optimization plans into reliable everyday performance without breaking data independence. Physical design matches file structures, hash versus B⁺-Tree indexes, and outer/inner nested-loop index placement to the query and update workload while avoiding small-table, low-cardinality, and arithmetic-expression traps and updating database statistics before resorting to optimizer hints. Physical Design Workload and Index Selection Heuristics For heavy aggregations over joined tables, pushing
GROUP BYdown below joins shrinks intermediate row counts early by pre-aggregating on the join keys. Group-By Push Down Finally, unclustered covering indexes can satisfy queries without reading the base table, while composite indexes speed multi-predicate filters when equality keys precede range keys despite extra write overhead. Covering Indexes and Composite Index Design Lecture 16 - Physical DesignWhen many transactions run concurrently, a scheduler must coordinate their reads and writes to maximize throughput without producing lost updates, dirty reads, inconsistent reads or ghost updates. Serializability theory distinguishes view serializability from conflict serializability tested via acyclic conflict graphs. Concurrency Anomalies and Serializability Theory Because live conflict graphs are too costly at scale, DBMSs enforce serializability with Two-Phase Locking and prevent dirty reads with Strict 2PL, releasing locks only at commit or rollback. Two-Phase Locking and Strict 2PL Intention locks coordinate multi-granularity access, predicate locking blocks phantom inserts, and SQL2 isolation levels relax read locks while keeping exclusive write locks strict. Hierarchical Locking Predicate Locking and SQL2 Isolation Levels Because holding locks while waiting can create cycles, systems resolve deadlocks via timeouts, prevention schemes or wait-graph detection. Deadlock Handling in Concurrency Control Lecture 17 - Concurrency Control
Even when concurrent schedules are serializable, power cuts or disk failures can leave uncommitted pages on disk or lose committed updates still sitting in volatile RAM. The reliability manager pairs with the buffer manager to protect atomicity and durability using an append-only log in stable memory, state-based idempotent undo and redo records, periodic checkpoints, and offline dumps. Reliability Manager Log Records Undo Redo and Checkpoints Two ordering rules—Write-Ahead Logging for before-states and Commit Precedence for after-states—govern synchronous vs. asynchronous log writes across the before-commit, after-commit, and mixed disk-write protocols. Write-Ahead Logging Commit Precedence and Disk-Write Protocols After a system failure, warm restart builds
UNDOandREDOlists from the last checkpoint, undoes backwards to the oldest uncommitted begin record, and redoes forwards from the oldest committed begin record, while media failures recover from the last dump via cold restart. Warm Restart Problem Solving and Cold Restart Lecture 18 - Reliability Management and RecoveryScaling beyond a single machine distributes data and computation across autonomous DBMS servers via client/server tiers, replication, or horizontal and vertical fragmentation with non-redundant or redundant allocation schemas, exposing fragmentation, allocation, or language transparency to applications. Distributed Architectures Fragmentation Allocation and Transparency Depending on how SQL statements span nodes, workloads fall into remote requests, remote transactions, distributed transactions, or distributed requests, where global atomicity requires Two-Phase Commit (
TMcoordinator,RMparticipants,Readyloss of autonomy, uncertainty window, and extendedREADY-list crash recovery). Distributed Transaction Classification and Two-Phase Commit Across heterogeneous DBMSs, X-Open-DTP standardizesTM/XAinterfaces with Presumed Abort, Read Only, and heuristic decisions, while parallel DBMSs use inter-query (OLTP) or intra-query (OLAP) execution evaluated with TPC benchmarks. X-Open-DTP Optimizations Parallel DBMS and TPC Benchmarks Lecture 19 - Distributed Database Management SystemsWhen semi-structured documents, massive horizontal scale, or join-free workloads outgrow fixed relational schemas, NoSQL systems trade native joins and rigid tables for key-value, column-family, graph, or document models queried via pure MapReduce views, using single immutable transaction documents to preserve bank balance atomicity without multi-document transactions. NoSQL Data Models MapReduce Rereduce and Views Across replicated clusters, the CAP theorem forces wide-area partitioned systems to trade single-copy consistency (
CP) against high availability (AP) under BASE soft-state propagation and deterministic conflict resolution. Replication CAP Theorem ACID vs BASE and Conflict Resolution Modern applications pair specialized stores through Polyglot Persistence—combining engines such as MongoDB, ElasticSearch, and Cassandra—and process massive datasets over Hadoop (HDFS,YARN,MapReduce) or in-memory Apache Spark DAG pipelines. MongoDB Polyglot Persistence Hadoop and Apache Spark Lecture 21 - Beyond Relational DatabasesFocusing directly on the leading document store, MongoDB stores nested, ordered BSON records (up to 16 MB, with GridFS for larger payloads and a unique non-array
_id) inside schema-less collections manipulated viainsertOne/insertMany,find,updateMany, anddeleteMany. MongoDB BSON Documents Collections and CRUD Operations Visually exploring those collections through MongoDB Compass adds schema and geospatial$geoWithinfiltering, Explain Plan index diagnostics,$jsonSchemavalidation, and multi-stage$match/$groupaggregation pipelines corresponding to SQLWHERE,GROUP BY, andHAVING. MongoDB Compass and Aggregation Pipelines Lecture 22 - Introduction to MongoDBFor real-time full-text search and analytics across polyglot architectures, ElasticSearch stores immutable JSON documents in Lucene-backed inverted indexes, normalizing text identically at index and query time through 3-stage analyzers and distinguishing boolean exact filters from relevance-scoring Query DSL (
matchandbool). ElasticSearch Data Model Inverted Index Analyzers and Query DSL Ranking relies on TF/IDF weights and field-length normalization in the Vector Space Model via cosine similarity, extended by fixed-size dense semantic embeddings (such as BERT and CLIP) and Hybrid Search to capture meaning beyond literal tokens. ElasticSearch TF-IDF Vector Space Model Semantic Embeddings and Hybrid Search Horizontally, indices split into shards flushed every second into immutable Lucene segments across cluster nodes, while incrementing_versionnumbers preserves write order across parallel replica updates and enables optimistic concurrency control. ElasticSearch Sharding Clusters and Optimistic Concurrency Control Lecture 20 - ElasticSearchTransactions group related reads and writes into an all-or-nothing unit. A bank transfer illustrates atomicity, while integrity constraints, concurrency control and recovery support consistency, isolation and durability. Transactions and ACID Properties Lecture 12 - Introduction to DBMS
Data stored in one lake is co-located, not automatically integrated. Without metadata, ownership, quality controls and clear meanings, a lake can become a data swamp that users cannot search or trust. The attached nine-page source recommends a manageable route to value rather than collecting everything without a purpose. Lecture 06 - Data Lakes
Data Warehouse Conceptual and Logical Design
The warehouse foundation now becomes a design: connect business questions to sufficient evidence, valid relationships and table structures that preserve the intended analysis.
Begin with business questions and available evidence rather than tables. Requirements define events, measures, dimensions, history and refresh needs. Reconciliation connects source meanings; conceptual, logical, physical and feeding design turn the agreed requirements into a warehouse that can actually support them. Warehouse Requirements and Design Lifecycle
The Dimensional Fact Model expresses facts, dimensions, measures and grouping paths before table implementation. Hierarchies assert functional dependencies from detailed members to broader levels, so a valid grouping path must reflect a real business relationship with unambiguous member identities. Dimensional Fact Model and Hierarchy Dependencies
A conceptual model also records when relationships may be absent, which attributes describe rather than group members, and when distinct paths must agree. These annotations keep missing relationships and inconsistent hierarchy assumptions from silently changing the meaning of analysis. DFM Optional Relationships Descriptive Attributes and Convergence
Grouping records does not by itself justify adding their measurements. Stream measures describe activity during periods, level measures describe snapshots, and unit measures are relative values. Whether SUM is meaningful depends on the dimension, compatible units and definitions, and non-overlapping contributions. Measure Additivity and Snapshot Semantics
Once an aggregation is meaningful, ask whether partial summaries retain enough information for a broader result. SUM, MIN and MAX combine directly; averages need supporting counts or sums; exact medians generally require richer information than partial medians and group sizes. Distributive Algebraic and Holistic Aggregates
A dimension may participate in distinct roles or admit simultaneous memberships. Shared hierarchies reuse one structure with role labels, while multiple edges represent several related members. A small stable set of categorical possibilities can instead be expressed as configuration flags. Shared Hierarchies Multiple Edges and Configuration Attributes
Some useful events have no stored numerical measurement. Factless schemas record occurrences that can be counted. To identify events that did not occur, additionally retain the expected or eligible combinations and compare them with actual occurrences at a matching grain and scope. Factless Facts and Coverage Sets
Facts preserve event dates, but changing descriptions also affect historical interpretation. Overwriting gives a current view; versioning connects facts to historical states. A stable direct fact reference, such as residence city at purchase, can sometimes preserve the specific context without versioning the entire customer. Historical Dimensions and Fact-Time Context
Storage and access choices depend on the expected queries, retained history and populated groups. Estimate fact counts, distinct dimension members and attribute sizes, including indexes and summaries. Aggregation changes occupancy, so detailed-level sparsity cannot simply be reused for every summary table. Warehouse Workload Volume and Aggregate Sparsity
Logical design translates the conceptual model into tables. A star keeps descriptive hierarchy attributes together; a snowflake separates selected dependencies into linked tables. Generated dimension keys can distinguish historical versions from source identity, while the fact key must respect the chosen grain. Star Snowflake Schemas and Surrogate Keys
A bridge keeps many-to-many membership separate from original facts, with optional allocation weights. Weighted queries distribute credit; impact queries report full activity associated with overlapping members. The query must preserve the distinction between allocated shares and distinct physical activity. Bridge Tables Allocation and Impact Queries
Some descriptive fields have no useful surrounding hierarchy. The lecture allows small values directly in the fact or combines several low-cardinality fields in a junk dimension. Each row describes a reusable combination of characteristics, not an individual event, and the combination domain must remain manageable. Degenerate Attributes and Junk Dimensions
The full lecture retains source pages, worked connections and terminology qualifications. Lecture 03 - Data Warehouse Conceptual and Logical Design
Link to original
Information
Professor for the supplied lectures: Elena Baralis, Politecnico di Torino, Data Base and Data Mining Group (DBMG).
Semester: 2026-27, following the university dashboard.
Credits and exam format: not provided in the supplied material.
Course title follows the user’s wording, interpreted as one combined course; the PDF itself is titled Data science - The Big Data challenge.
🚀 Current Focus
-
Review Lecture 03 - Data Warehouse Conceptual and Logical Design and connect requirements, aggregation and logical design
-
Review Lecture 06 - Data Lakes and compare schema-on-read with schema-on-write
-
Review Lecture 07 - Data Mining Process and trace KDD from data to interpreted knowledge
-
Review Lecture 08 - Data Preprocessing and connect data types, cleaning, transformation and similarity
-
Review Lecture 09 - Association Rules and calculate support, confidence and lift
-
Review Lecture 10 - Classification and trace a model from training data to evaluation
-
Review Lecture 11 - Clustering and compare K-means, hierarchical clustering and DBSCAN
-
Review Lecture 12 - Introduction to DBMS and trace a transaction through ACID recovery
-
Review Lecture 13 - Buffer Manager and trace page state, victim selection and steal/no-force recovery
-
Review Lecture 14 - Physical Access to Data and choose heap, B+-Tree, hash or bitmap access for a query
-
Review Lecture 15 - Query Optimization and trace algebraic rewrites, cost estimates and join-plan selection
-
Review Lecture 16 - Physical Design and apply index heuristics, group-by push down, covering indexes and composite key order
-
Review Lecture 17 - Concurrency Control and trace anomalies, conflict graphs, Strict 2PL, isolation levels and deadlocks
-
Review Lecture 18 - Reliability Management and Recovery and trace WAL, Commit Precedence, Warm Restart logs, and Cold Restart
-
Review Lecture 19 - Distributed Database Management Systems and trace fragmentation, transparency, transaction classes, 2PC, and X-Open-DTP
-
Review Lecture 20 - ElasticSearch and trace inverted indexes, analyzer pipelines, Filter vs. Query, TF/IDF + VSM, semantic embeddings, shards, and
_version -
Review Lecture 21 - Beyond Relational Databases and compare NoSQL models, MapReduce/Rereduce, CAP/BASE, conflict resolution, and Spark vs. Hadoop
-
Review Lecture 22 - Introduction to MongoDB and practice BSON rules, CRUD queries, Compass Explain Plan, and
$match/$groupaggregation pipelines -
Review Lecture 02 - Introduction to Data Warehousing and connect grain, integration and analytical questions
-
Explain the five Vs with one example each
-
Draw the KDD process and distinguish it from the data lifecycle
-
Compare association rules, classification, regression, and clustering
-
Explain why data quality, domain knowledge, and interpretation matter
📚 Lectures
- Lecture 01 - The Big Data Challenge
- Lecture 02 - Introduction to Data Warehousing
- Lecture 03 - Data Warehouse Conceptual and Logical Design
- Lecture 06 - Data Lakes
- Lecture 07 - Data Mining Process
- Lecture 08 - Data Preprocessing
- Lecture 09 - Association Rules
- Lecture 10 - Classification
- Lecture 11 - Clustering
- Lecture 12 - Introduction to DBMS
- Lecture 13 - Buffer Manager
- Lecture 14 - Physical Access to Data
- Lecture 15 - Query Optimization
- Lecture 16 - Physical Design
- Lecture 17 - Concurrency Control
- Lecture 18 - Reliability Management and Recovery
- Lecture 19 - Distributed Database Management Systems
- Lecture 20 - ElasticSearch
- Lecture 21 - Beyond Relational Databases
- Lecture 22 - Introduction to MongoDB
01 is a local organizational number, not a lecture number supplied by the PDF. The Big Data Challenge has 50 PDF pages. The data-warehousing introduction has 27 PDF pages; 02 preserves its source filename identifier. The conceptual/logical design PDF has 47 pages; 03 follows its filename identifier. The Buffer Manager source has 20 PDF pages; 13 follows its filename identifier. The Data Lakes source has 9 PDF pages; 06 follows its filename identifier. The Data Mining Process source has 5 PDF pages; 07 follows its filename identifier. The Data Preprocessing source has 79 PDF pages; 08 follows its filename identifier.
🧪 Labs
No lab material supplied yet. Add notes under 50 Labs/Data Science and Database Technologies/ using Lab Template.
✏️ Exercises
No exercise sheet supplied yet. Use Exercise Template and link each exercise to the relevant concepts.
📦 Assignments
No assignments or deadlines supplied yet.
🧠 Concepts
Big data and infrastructure
Knowledge discovery
- Data Science and the KDD Process
- Data Cleaning and Integration
- Descriptive Predictive and Prescriptive Analytics
- Data Mining and Patterns
Analysis techniques
- Association Rules Support Confidence and Lift
- Classification and Regression
- Clustering and Outlier Detection
- Sequence Time Series and Geospatial Mining
Classification
- Classification and Decision Trees
- Classification Methods and Model Tradeoffs
- Classification Evaluation and Confusion Matrices
- Neural Networks for Classification
Clustering
- Clustering Foundations and Cluster Types
- K-means Clustering and SSE
- Hierarchical Clustering and Linkage
- DBSCAN and Cluster Validity
Database management systems
- DBMS Architecture and Query Processing
- Physical Access Structures and Access Methods
- Clustered and Unclustered Indexes
- Query Optimization Pipeline and Relational Algebra
- Query Cost Estimation and Access Selection
- Join Algorithms and Execution Plan Selection
- Physical Design Workload and Index Selection Heuristics
- Group-By Push Down
- Covering Indexes and Composite Index Design
- Concurrency Anomalies and Serializability Theory
- Two-Phase Locking and Strict 2PL
- Hierarchical Locking Predicate Locking and SQL2 Isolation Levels
- Deadlock Handling in Concurrency Control
- Buffer Manager and Page Replacement
- Transactions and ACID Properties
- Reliability Manager Log Records Undo Redo and Checkpoints
- Write-Ahead Logging Commit Precedence and Disk-Write Protocols
- Warm Restart Problem Solving and Cold Restart
- Distributed Architectures Fragmentation Allocation and Transparency
- Distributed Transaction Classification and Two-Phase Commit
- X-Open-DTP Optimizations Parallel DBMS and TPC Benchmarks
- ElasticSearch Data Model Inverted Index Analyzers and Query DSL
- ElasticSearch TF-IDF Vector Space Model Semantic Embeddings and Hybrid Search
- ElasticSearch Sharding Clusters and Optimistic Concurrency Control
- NoSQL Data Models MapReduce Rereduce and Views
- Replication CAP Theorem ACID vs BASE and Conflict Resolution
- MongoDB Polyglot Persistence Hadoop and Apache Spark
- MongoDB BSON Documents Collections and CRUD Operations
- MongoDB Compass and Aggregation Pipelines
Association rules
- Association Rules Support Confidence and Lift
- Apriori and FP-growth
- Maximal Closed and Generalized Itemsets
Project design and social impact
- Data Science Project Design and Roles
- Model Interpretability and Confounding
- Algorithmic and Data Bias
- Privacy in Data Analytics
Data warehousing
- Decision Support BI and Data Warehouses
- Dimensions Measures and Fact Grain
- Star Schemas and Fact Tables
- Warehouse Size Sparsity and Aggregation
- OLAP Drill Down and Data Mining
- ETL and Semantic Integration
- Data Warehouses and Data Marts
- ROLAP MOLAP and HOLAP
- Warehouse Metadata and Lineage
- Two and Three Level Warehouse Architectures
Data lakes
Data mining process
- Data Science and the KDD Process
- Data Mining and Patterns
- Descriptive Predictive and Prescriptive Analytics
- Association Rules Support Confidence and Lift
- Classification and Regression
- Clustering and Outlier Detection
Data preprocessing
- Data Types and Attribute Scales
- Data Quality and Preparation
- Similarity Dissimilarity and Correlation
Warehouse conceptual and logical design
- Warehouse Requirements and Design Lifecycle
- Dimensional Fact Model and Hierarchy Dependencies
- DFM Optional Relationships Descriptive Attributes and Convergence
- Measure Additivity and Snapshot Semantics
- Distributive Algebraic and Holistic Aggregates
- Shared Hierarchies Multiple Edges and Configuration Attributes
- Factless Facts and Coverage Sets
- Historical Dimensions and Fact-Time Context
- Warehouse Workload Volume and Aggregate Sparsity
- Star Snowflake Schemas and Surrogate Keys
- Bridge Tables Allocation and Impact Queries
- Degenerate Attributes and Junk Dimensions
❓ Questions
- Which V creates the main difficulty in a given application?
- When should analysis use streaming rather than batch processing?
- What distinguishes a useful pattern from an accidental correlation?
- Why can removing a sensitive attribute fail to remove bias?
- What database technologies and assessment requirements will later lectures cover?
📖 Resources
-
Local source:
DSTBD_3-DWprogConcLog-EN.pdf, Elena Baralis, Data warehouse design, 47 PDF pages. Original PDF and figures remain local under the copyright notice. See Lecture 03 - Data Warehouse Conceptual and Logical Design. -
Local source:
DSTBD_2-DWintro-EN.pdf, Elena Baralis, Data warehouse - Introduction, 27 PDF pages. Copyright notice restricts redistribution; original PDF and figures remain local. See Lecture 02 - Introduction to Data Warehousing. -
Local source:
DSTBD_6-DataLakes-ENG.pdf, Elena Baralis, Data Lakes, 9 PDF pages. Original PDF and figures remain local; the lecture and concept notes paraphrase the source. See Lecture 06 - Data Lakes. -
Local source:
DSTBD_7-DMProcess-IT.pdf, Elena Baralis, The data mining process, 5 PDF pages. Original PDF and figures remain local; the lecture note paraphrases the source. See Lecture 07 - Data Mining Process. -
Local source:
DSTBD_8-DMPreProc-IT.pdf, Elena Baralis and Tania Cerquitelli, Data preprocessing, 79 PDF pages. Original PDF and figures remain local; the lecture and concept notes paraphrase the source. See Lecture 08 - Data Preprocessing. -
Local source: DSTBD_9-DMassrules.pdf, Elena Baralis and Silvia Chiusano, Association Rules Fundamentals, 98 PDF pages. Original PDF and figures remain local; the lecture and concept notes paraphrase the source. See Lecture 09 - Association Rules.
-
Local source:
DSTBD_10-DMClassification.pdf, Elena Baralis, Classification fundamentals, 160 PDF pages. Original PDF and figures remain local; the lecture and concept notes paraphrase the source. See Lecture 10 - Classification. -
Local source:
11-DMClustering-26-27.pdf, Elena Baralis and Tania Cerquitelli, Clustering fundamentals, 96 PDF pages. Original PDF and figures remain local; the lecture and concept notes paraphrase the source. See Lecture 11 - Clustering. -
Local source:
12-IntroductionDBMS.pdf, Naeem Mahoto, Introduction to DBMS, 18 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 12 - Introduction to DBMS. -
Local source:
14-PhysicalAccess.pdf, Naeem Mahoto, Physical Access to Data, 41 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 14 - Physical Access to Data. -
Local source:
15-QueryOptimization.pdf, Naeem Mahoto, Query optimization, 78 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 15 - Query Optimization. -
Local source:
16-PhysicalDesign.pdf, Data Base and Data Mining Group (DBMG), Physical Design, 41 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 16 - Physical Design. -
Local source:
17-ConcurrencyControl_new.pdf, Data Base and Data Mining Group (DBMG), Concurrency Control, 79 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 17 - Concurrency Control. -
Local source:
18-Recovery.pdf, Data Base and Data Mining Group (DBMG), Reliability Management / Recovery Management, 53 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 18 - Reliability Management and Recovery. -
Local source:
19-DistributedDatabases.pdf, Data Base and Data Mining Group (DBMG), Distributed Database Management Systems, 76 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 19 - Distributed Database Management Systems. -
Local source:
20-ElasticSearch_v2.pdf, Data Base and Data Mining Group (DBMG), ElasticSearch, 68 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 20 - ElasticSearch. -
Local source:
Beyond-relational-databases-18-12.pdf, Daniele Apiletti (DBMG), Beyond relational databases, 76 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 21 - Beyond Relational Databases. -
Local source:
02-MongoDB-intro-GUI.pdf, Daniele Apiletti (DBMG), Introduction to MongoDB, 36 PDF pages. Original PDF remains local; the lecture and concept notes paraphrase the source. See Lecture 22 - Introduction to MongoDB.
Historical statistics and examples are recorded as lecture material. Added explanations and worked examples are explicitly identified.
🎯 Exam Preparation
-
Separate requirements, conceptual, logical, physical and feeding design
-
Validate hierarchies, optional relationships and convergence
-
Explain additivity and how partial summaries can be combined
-
Compare historical dimension versions with fact-time context
-
Choose star/snowflake, bridge/push-down and junk-dimension representations
-
Explain operational/analytical separation and warehouse properties
-
Choose a fact grain and identify information lost through aggregation
-
Compare dependent/independent marts and ROLAP/MOLAP/HOLAP
-
Trace ETL, metadata and two-/three-level architecture tradeoffs
-
Compare data warehouses and data lakes using schema timing, data types, users and workloads
-
Explain supervised classification, decision-tree splits and pruning
-
Compare trees, forests, rules, k-NN, Bayes, SVMs and neural networks
-
Calculate confusion-matrix metrics and explain why accuracy can mislead
-
Compare K-means, hierarchical linkage and DBSCAN on new scenarios
-
Explain SSE, the elbow method and silhouette score
-
Trace DBMS query processing and explain the ACID properties
-
Compare clustered and unclustered indexes, B+-Trees, hash indexes and bitmap indexes
-
Explain selection/projection pushdown and compare nested-loop, merge and hash joins
-
Apply physical design heuristics (block factor selectivity, nested-loop outer/inner choice, statistics vs. hints)
-
Trace group-by push down, covering indexes and composite index key order
-
Distinguish the five concurrency anomalies, test VSR/CSR via conflict graphs and explain why Strict 2PL is needed
-
Apply hierarchical locking, predicate locking, SQL2 isolation levels and deadlock handling strategies
-
Explain WAL, Commit Precedence, synchronous commit vs. asynchronous abort, and the three DB-vs-commit disk-write protocols
-
Trace Warm Restart logs (including
CK(L),A(T), backward UNDO, and forward REDO) and compare 3-step vs. 2-pass Cold Restart -
Compare horizontal, vertical, and mixed fragmentation, rewrite queries across transparency levels, and classify distributed transactions
-
Trace Two-Phase Commit (Phase I/II, uncertainty window, RM
READYlist, TM/network failures) and X-Open-DTP optimizations (Presumed Abort, Read Only, Heuristic Decision) -
Explain ElasticSearch’s inverted index, 3-stage Analyzer pipeline, Filter vs. Query (
bool:must/should/must_not), and immutable update reindexing -
Compute/interpret TF/IDF + field-length norm + VSM cosine similarity, contrast VSM with dense semantic embeddings & Hybrid Search, and explain shards +
_versionout-of-order replication -
Compare the four NoSQL families, design MapReduce/Rereduce views (avoiding the
AVGrereduce trap), and apply the single-document Banking Design Recipe -
Contrast
Cin ACID vs.Cin CAP,CPvs.AP, BASE Soft state, CouchDB_revconflict resolution, Polyglot Persistence, and Hadoop MapReduce vs. Spark DAG execution -
Apply MongoDB BSON rules (
_id, 16 MB/GridFS, ordering), write CRUD shell commands, and build$match/$groupaggregation pipelines (WHEREvs.HAVING) -
Explain why co-located raw data is not automatically integrated
-
Identify the governance controls that prevent a data swamp
-
Trace selection, preprocessing, transformation, mining and interpretation
-
Compare association rules, classification and clustering on new scenarios
-
Classify nominal, ordinal, interval and ratio attributes
-
Explain noise, outliers, missing values and duplicate data
-
Calculate normalized values and Euclidean distance
-
Explain why correlation measures linear association rather than causation
-
Define big data without relying on a fixed size threshold
-
Explain volume, velocity, variety, veracity, and value
-
Describe passive recording, active generation, and automatic production
-
Compare pull-based and push-based acquisition
-
Distinguish infrastructure, data management systems, and processing models
-
Draw generation -> acquisition -> storage -> analysis
-
Draw selection -> preprocessing -> transformation -> mining -> interpretation
-
Explain cleaning, integration, and redundancy elimination
-
Distinguish descriptive, predictive, and prescriptive analytics
-
Compare association rules, classification, regression, clustering, and outlier detection
-
Explain the importance of temporal order and spatial context
-
Identify data, analysis, visualization, domain, and business expertise
-
Distinguish global model explanations from local prediction explanations
-
Explain the asthma/pneumonia example as a warning about interpreting associations
-
Explain proxy variables and the privacy risks of aggregate location data
Practice without notes
- Map an emergency-management application onto the five Vs and the data lifecycle
- Compute support and confidence for diapers -> beer in the five displayed transactions
- Explain why a predicted class and a discovered cluster are different
- Design a small traffic-analysis project: question, data, method, evaluation, maintenance
🗂 Course Structure
10 Courses/
├── Data Science and Database Technologies.md
└── Data Science and Database Technologies/
├── Lectures/
│ ├── Lecture 01 - The Big Data Challenge.md
│ ├── Lecture 02 - Introduction to Data Warehousing.md
│ ├── Lecture 03 - Data Warehouse Conceptual and Logical Design.md
│ ├── Lecture 06 - Data Lakes.md
│ ├── Lecture 07 - Data Mining Process.md
│ ├── Lecture 08 - Data Preprocessing.md
│ ├── Lecture 09 - Association Rules.md
│ ├── Lecture 10 - Classification.md
│ ├── Lecture 11 - Clustering.md
│ ├── Lecture 12 - Introduction to DBMS.md
│ ├── Lecture 16 - Physical Design.md
│ ├── Lecture 17 - Concurrency Control.md
│ ├── Lecture 18 - Reliability Management and Recovery.md
│ ├── Lecture 19 - Distributed Database Management Systems.md
│ ├── Lecture 20 - ElasticSearch.md
│ ├── Lecture 21 - Beyond Relational Databases.md
│ └── Lecture 22 - Introduction to MongoDB.md
└── Resources/
└── 01 - The Big Data Challenge.pdf
20 Concepts/
└── Data Science and Database Technologies/
├── Lecture 06 - Data Lakes/
│ └── Data Lakes and Data Swamps.md
├── Lecture 07 - Data Mining Process/ (reuses Lecture 01 concepts)
├── Lecture 08 - Data Preprocessing/
│ ├── Data Types and Attribute Scales.md
│ ├── Data Quality and Preparation.md
│ └── Similarity Dissimilarity and Correlation.md
└── Lecture 09 - Association Rules/
├── Association Rules Support Confidence and Lift.md
├── Apriori and FP-growth.md
└── Maximal Closed and Generalized Itemsets.md
└── Lecture 10 - Classification/
├── Classification and Decision Trees.md
├── Classification Methods and Model Tradeoffs.md
├── Classification Evaluation and Confusion Matrices.md
└── Neural Networks for Classification.md
└── Lecture 11 - Clustering/
├── Clustering Foundations and Cluster Types.md
├── K-means Clustering and SSE.md
├── Hierarchical Clustering and Linkage.md
└── DBSCAN and Cluster Validity.md
└── Lecture 12 - Introduction to DBMS/
├── DBMS Architecture and Query Processing.md
└── Transactions and ACID Properties.md
└── Lecture 16 - Physical Design/
├── Physical Design Workload and Index Selection Heuristics.md
├── Group-By Push Down.md
└── Covering Indexes and Composite Index Design.md
└── Lecture 17 - Concurrency Control/
├── Concurrency Anomalies and Serializability Theory.md
├── Two-Phase Locking and Strict 2PL.md
├── Hierarchical Locking Predicate Locking and SQL2 Isolation Levels.md
└── Deadlock Handling in Concurrency Control.md
└── Lecture 18 - Reliability Management and Recovery/
├── Reliability Manager Log Records Undo Redo and Checkpoints.md
├── Write-Ahead Logging Commit Precedence and Disk-Write Protocols.md
└── Warm Restart Problem Solving and Cold Restart.md
└── Lecture 19 - Distributed Database Management Systems/
├── Distributed Architectures Fragmentation Allocation and Transparency.md
├── Distributed Transaction Classification and Two-Phase Commit.md
└── X-Open-DTP Optimizations Parallel DBMS and TPC Benchmarks.md
└── Lecture 20 - ElasticSearch/
├── ElasticSearch Data Model Inverted Index Analyzers and Query DSL.md
├── ElasticSearch TF-IDF Vector Space Model Semantic Embeddings and Hybrid Search.md
└── ElasticSearch Sharding Clusters and Optimistic Concurrency Control.md
└── Lecture 21 - Beyond Relational Databases/
├── NoSQL Data Models MapReduce Rereduce and Views.md
├── Replication CAP Theorem ACID vs BASE and Conflict Resolution.md
└── MongoDB Polyglot Persistence Hadoop and Apache Spark.md
└── Lecture 22 - Introduction to MongoDB/
├── MongoDB BSON Documents Collections and CRUD Operations.md
└── MongoDB Compass and Aggregation Pipelines.md✅ End-of-week reset
- Clear completed current-focus items
- Review questions and add answers to concept notes
- Link new lectures and exercises
- Pick the next topics to review