SteelReed

Search

Search posts, questions…

Interview

Databases

SQL queries and indexes, transactions and locking, data modeling and scaling.

Start studying
Questions
89
Junior
19
Middle
49
Senior
21

SQL & Query Tuning

Open topic
  1. Set 01

    SQL basics

    DDL/DML, keys, execution order, GROUP BY, UNION and views.

    Junior5Middle1
    0/6
    View questions · 6 questions
  2. Set 02

    JOINs, NULLs and subqueries

    JOIN types, ON vs WHERE, fan-out, NULL traps, EXISTS vs IN.

    Junior3Middle4
    0/7
    View questions · 7 questions
  3. Set 03

    Window functions, CTEs and classic queries

    ROW_NUMBER, CTEs, Nth salary, top-N per group, duplicates, trees.

    Junior1Middle5
    0/6
    View questions · 6 questions
  4. Set 04

    Indexes

    B+trees, sargability, composite, covering, clustered, indexing big tables.

    Junior2Middle5Senior1
    0/8
    View questions · 8 questions
  5. Set 05

    Reading plans and tuning queries

    EXPLAIN, row estimates, join algorithms, paging, slow queries and search on big tables.

    Junior1Middle4Senior2
    0/7
    View questions · 7 questions
  6. Set 06

    Connection pools

    HikariCP, pool exhaustion and pool sizing.

    Middle2Senior1
    0/3
    View questions · 3 questions

Transactions & Locking

Open topic
  1. Set 01

    ACID and isolation

    ACID, isolation levels, MVCC, lost updates and write skew.

    Junior2Middle1Senior1
    0/4
    View questions · 4 questions
  2. Set 02

    Database locks

    Shared/exclusive locks, gap locks, deadlocks and SKIP LOCKED.

    Middle4
    0/4
    View questions · 4 questions
  3. Set 03

    Handling concurrent writes

    Check-then-act, optimistic vs pessimistic locks, versions and no double-selling.

    Middle4Senior1
    0/5
    View questions · 5 questions
  4. Set 04

    @Transactional and long transactions

    Self-invocation, propagation and long transactions that stall the DB.

    Middle3Senior1
    0/4
    View questions · 4 questions

Data Modeling & Scaling

Open topic
  1. Set 01

    Schema design

    Process, normalization, foreign keys, constraints, types, primary keys.

    Junior2Middle4
    0/6
    View questions · 6 questions
  2. Set 02

    Schema patterns and changes

    Audit, soft delete, translations, denormalizing, JSON columns, online ALTER, deleting millions of rows.

    Middle2Senior4
    0/6
    View questions · 6 questions
  3. Set 03

    Storing dates and times

    timestamptz, Jackson/JDBC time bugs and recurring appointments.

    Junior1Middle1Senior1
    0/3
    View questions · 3 questions
  4. Set 04

    Domain design cases

    Counters, room and flight booking, double-entry ledgers and multi-tenancy.

    Middle4Senior2
    0/6
    View questions · 6 questions
  5. Set 05

    Replicas, failover and backups

    Replication lag, read-your-writes, failover and PITR.

    Junior1Middle1Senior1
    0/3
    View questions · 3 questions
  6. Set 06

    Partitioning and sharding

    Table partitioning, when to shard, shard keys and resharding.

    Middle1Senior3
    0/4
    View questions · 4 questions
  7. Set 07

    Choosing a database

    SQL or NoSQL, ACID/BASE/CAP, B-trees, LSM and columnar.

    Middle2Senior1
    0/3
    View questions · 3 questions
  8. Set 08

    Elasticsearch

    Inverted indexes, bool queries, syncing from the DB, reindexing.

    Junior1Middle1Senior2
    0/4
    View questions · 4 questions