AITeky Learn

AiTeky Original Interactive Learning & Practice Advanced

Under the hood of the data store: from a whiteboard sketch to a cluster that agrees

Turn a clinic's requirements into tables that cannot hold a double booking, design a pharmacy chain's sales warehouse that keeps history honest, watch an optimiser pick a plan from its statistics, replay a log after a crash, and choose what a three-node cluster does when the network splits.

A database is more than a place to keep tables. Before it holds anything, someone has to turn plain-language requirements into a design. Analysts need a different shape of the same data to answer questions fast. Inside, the engine chooses how to run each query, and it must survive a power cut without losing a committed payment. And once data lives on several machines, the system must decide what to do when they cannot talk to each other.

This course works through all five with small Python programs that run in your browser, several of them using SQLite, a real database engine built into Python. Where the engines differ, the lesson says what PostgreSQL, MySQL and others do; check their documentation for details. All clinics, pharmacies and figures are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

Take "Database design and internals: keys, indexes and transactions" first, and basic SQL helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min πŸ”’ AiTeky Pass Requirements to entities and relationships: ER modelling Read a clinic's booking requirements for entities, relationships and their cardinality, place foreign keys on the right side, turn a many-to-many relationship into a junction table, and build the design in SQLite so that a double booking is impossible.
  2. 03 30 min πŸ”’ AiTeky Pass Query processing and the optimiser Follow a query from text to plan, estimate how many rows a filter keeps the way an optimiser does, watch SQLite change its index choice after ANALYZE and still pick the slower one because averages hide skew, and see a wrong estimate choose the wrong join method.
  3. 04 30 min πŸ”’ AiTeky Pass Write-ahead logging, crash recovery and checkpoints Run three transactions through a write-ahead log, pull the plug while one is unfinished, recover by redoing committed work and undoing the rest, see how a checkpoint shortens recovery, and count how group commit lets one disk flush serve many payments.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 02 30 min πŸ”’ AiTeky Pass On the job: dimensional modelling: star and snowflake schemas Design a pharmacy chain's sales warehouse by choosing the grain, the fact table and its dimensions, compare a star with a snowflake by the joins every report needs, and see how a store that changes region rewrites last quarter's report unless the dimension keeps history.
  2. 05 30 min πŸ”’ AiTeky Pass On the job: distributed databases: CAP, consistency models and consensus basics Check which read and write quorums on three replicas always see the latest value, split the network and watch a wallet go negative when both sides keep accepting payments, pick a consistency level for each feature, and size a consensus cluster by the failures it must survive and the latency of a majority.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in