AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Fast, consistent and locked down: lookups that skip the scan, safe concurrent writes and who may see what

Make PostgreSQL and MySQL queries fast with the right index (and know when one costs more than it saves), keep data correct when many people write at once, and lock the server down so each account can do only its job.

Once a database holds real data and real traffic, three questions come up again and again. Why is this query slow? Why did two people's changes overwrite each other? And who can actually read the patients' phone numbers? This course answers each with the tools both PostgreSQL and MySQL give you: indexes, transactions and locks, and users, roles and privileges.

It continues with the clinic-booking start-up and its backend developer, Sana. The code runs in your browser on SQLite or in plain Python models of what the servers do; where PostgreSQL and MySQL differ, the lesson shows their own syntax. Check each product's documentation for exact details. All names 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 "Two open-source engines side by side" first if constraints and joins are new to you.

Locked. Sign up free

Learn

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

  1. 01 30 min 🔒 AiTeky Pass Indexes: B-tree, composite, partial and when they hurt See how a B-tree index turns a full-table scan into a few page reads, order a composite index's columns so it serves the real queries, index only the rows that matter with a partial index, and count what each extra index costs on every write.
  2. 02 30 min 🔒 AiTeky Pass Transactions, isolation levels and locking Make a booking and its payment succeed or fail together with a transaction, watch a lost update happen when two sessions read and then write, fix it three ways (an atomic UPDATE, SELECT ... FOR UPDATE, a version check), match each isolation level to the anomalies it allows, and avoid deadlocks by locking in one order.

Industry ready

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

  1. 03 35 min 🔒 AiTeky Pass On the job: users, roles, privileges and securing the server Replace one all-powerful database login with roles for the app, migrations, analysts and support, grant each only the privileges its job needs, hide patients' phone numbers from analysts, audit a server's settings for open ports, weak authentication and missing TLS, and decide what to fix first.

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