6 topics · 0/6 read
Databases & SQL
SQL vs NoSQL, joins and the queries interviewers ask, indexes, transactions and isolation levels, schema design and normalization, and the N+1 problem with ORMs.
SQL vs NoSQL: How to Choose
SQL vs NoSQL is less about which is better and more about your data and queries. Relational databases like PostgreSQL give you joins, constraints and transactions; NoSQL stores like MongoDB, DynamoDB, Redis and Cassandra
Read nowSQL Joins and Common Interview Queries
SQL questions appear in almost every backend interview: joins, GROUP BY with HAVING, subqueries, window functions and the classic "second highest salary". Practise writing them by hand.
Read nowDatabase Indexes and Query Performance
Indexes are the first answer to "this query is slow". An index is a sorted structure, usually a B-tree, that lets the database find rows without scanning the whole table. Interviewers want to know how they work, what the
Read nowTransactions, ACID and Isolation Levels
Transactions make several writes succeed or fail together. ACID, isolation levels and anomalies like dirty reads and lost updates are standard interview material, especially for anything involving money or stock.
Read nowSchema Design and Normalization
Good schema design keeps data correct and queries simple. Interviewers ask you to design tables for a feature, explain normal forms, model many-to-many relationships, and say when denormalizing is worth it.
Read nowORMs, the N+1 Problem and Connection Pooling
ORMs such as Prisma, Drizzle, TypeORM and Sequelize speed up development but hide the SQL they run. The N+1 query problem and connection pool exhaustion are the two ORM issues interviewers ask about most.
Read now