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.
- ▶ Run code in your browser. Nothing to install
- ✓ Exercises that check themselves
- 📖 Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 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.
- 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.

