Search
Lessons (40)
- SQL Language, Identifiers & Data Types
Interview answers for DDL/DML/DCL, generated IDs, UNION, static/dynamic SQL and CHAR/VARCHAR. Covers PDF questions …
- SQL Interview Query Drills
… Covers PDF questions 23, 25 and 26. ![SQL drill workflow: define grouping, compute an aggregate, then filter with …
- SQL vs NoSQL Databases
… tables, rows, relationships sql CREATE TABLE customers ( id BIGSERIAL PRIMARY KEY, email TEXT NOT NULL UNIQUE, name TEXT …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
… embed the question, run the SQL, return the top five. 4. Thursday: Add generation with the grounding prompt …
- Database Indexing & Transactions
… by country, then city, then age. sql CREATE INDEX idx people location ON people (country, city, age); Query …
- Debug Latency Like an Investigator
… The database itself shows normal query times. - Slow SQL: the SQL span is long. The database's own …
- Indexes, EXPLAIN & Query Plans
… MySQL, SQL Server and Oracle have the same ideas with different commands. Step 1: Find the slow query …
- AWS Databases: Choose the Right One
Choose SQL, key-value, or cache storage by the problem you need to solve, then protect it with …
- AWS Data Pipelines in Plain Language
… Create a practice database: sql CREATE DATABASE IF NOT EXISTS academy; Then create a table for this simple …
- Cross-Service Data: How to Join Without a Database JOIN
… Their databases are private implementation details, so Order Service cannot safely run a normal SQL JOIN against User …
- ACID, Transactions & Locks
… deadlock detected (SQLSTATE 40P01 ) - MySQL / InnoDB: ERROR 1213: Deadlock found when trying to get lock - SQL Server: error …
- Onion Architecture & Clean vs Hexagonal vs Onion
… infrastructure, UI, tests Implementations of the interfaces, web framework, DB, external APIs SqlOrderRepository , controllers, EF Core / Prisma mermaid …
- Python Web APIs: FastAPI and Django
… typed env vars ├── database.py engine + session dependency ├── models.py SQLAlchemy tables ├── schemas.py Pydantic request/response models …
- AI Architect Reference: Decisions, Glossary, Resources and Career
… read, write,<br/ extract, converse?"} L -- no -- SQL["SQL / analytics"] L -- yes -- K{"Needs private<br/ or recent …
- Month 1: Data, Math Intuition and Classic ML (Weeks 1-4)
… ten real features from your platform and whether each is a rules, SQL, ML or LLM problem. Weekend …
- A WhatsApp OTP Is Only Single Use If You Make It So
… It's a system where "sell" and "mark sold" happen together. The data model sql CREATE TABLE otp …
- What to Learn in AI, and in What Order
… Python is the most common language for model experiments; SQL and basic data visualization are useful too. 2 …
- Storage Engines & Database Operations
… the signals behind database reliability. What happens below SQL matters A storage engine decides how rows and indexes …
- Layered (N-Tier) Architecture
… No SQL in controllers; no HTTP in services. 2. Dependencies point down: a layer may use the layer …
- API Contracts, Gateways and Security
… does this invoice belong to this user's company? (authorization) ❌ Wrong: sql SELECT FROM invoices WHERE id = 1002 …
- N+1 Queries, Loading & Pagination
… In production, sample traces rather than logging sensitive SQL values.
- Authentication, Authorization & API Security
… tokens MFA, rate limiting, short token lifetimes Injection (SQL, NoSQL, command) ' OR 1=1 -- returns every row Parameterised …
- Vertical Slice Architecture & the Modular Monolith
… simple, direct SQL export async function getOrderHistory(db: Pool, customerId: string) { const { rows } = await db.query( SELECT id …
- Concurrency, Resilience & Distributed Workflows
… Prefer an atomic database statement or a transaction that owns the invariant: sql UPDATE inventory SET available = available …
- Data in Microservices: Sagas & the Outbox Pattern
… or CDC / Debezium)"] -- K[(Kafka / RabbitMQ)] -- C[Consumers] sql BEGIN; INSERT INTO orders (id, customer id, total cents …
- C4 Architecture Diagrams: Context, Container, Component and Code
… checkout business rules do not need to know Stripe's HTTP format or PostgreSQL's SQL. Those details …
- Your Job Search Roadmap
… Seen in posts My level (0–3) Action --- --- --- --- SQL & indexing 9 / 10 2 Review [Database Design](/learn/databases …
- AI Evaluation, Safety, and Security
… Output handling: validate output before using it in SQL, HTML, shell commands, or business actions. Never treat generated …
- Clean Architecture in Depth
… no req , no res , no SQL, no Stripe SDK, no JSON. Just the story of placing an order …
- Flash Sale: 10 Million Buyers, No Oversell
… Check and change it in one step: sql -- in one transaction UPDATE reservations SET status = 'EXPIRED' WHERE id …
- Rust: Types, Errors and Concurrency
… Invalid(String), [error("database error")] Db( [from] sqlx::Error), // ? converts sqlx::Error into AppError automatically } fn load user …
- S — Single Responsibility Principle
… rules from ACCOUNTING / } reportHours() { / format from HR / } save() { / SQL from the DBA / ops team / } } mermaid flowchart TB A …
- L6 Production Debugging Casebook
… waiting in a queue, waiting for a database connection, running SQL, a remote call, a lock, or GC …
- What Is Artificial Intelligence? A Developer's Guide
… bookstore, a recommendation model can rank books, but SQL still checks stock and regular code calculates payment. Useful …
- DRY: Don't Repeat Yourself
… between files One .env / config module The same SQL in many places A repository function Repeated UI markup …
- Python and Math Foundations with Runnable Examples
… lists, dictionaries, files, exceptions, and basic tests first. SQL helps you select training examples; HTTP and JSON help …
- Time, Consistency and Distributed Transactions
… You need one place that decides , one at a time: sql UPDATE accounts SET balance = balance - 80 WHERE …
- Clean Error Handling
… to exit a loop). - Showing stack traces or SQL errors to end users. That is a security leak …
- Month 5: AI Agents and Tool Orchestration (Weeks 17-20)
… List the top three failure patterns and fix one. sql CREATE TABLE agent audit log ( id bigserial PRIMARY …
- Abstraction
… the caller must know it's SQL underneath userRepo.find("SELECT FROM users WHERE email = ?", [email]); // ✅ Good: describes …