Blog: notes on backend, data and AI
Notes on backend engineering, data and building products with AI.
November 25, 2026 · 4 min read
Pagination in MySQL: OFFSET, keyset and deferred join
LIMIT with a large OFFSET gets slower with every page because MySQL reads and discards the skipped rows. Keyset pagination and the deferred join keep deep pages fast.
mysqlpaginationperformance
November 25, 2026 · 4 min read
Why MySQL is not using your index
You added an index and the query is still slow. The usual causes are functions on the column, type mismatches, leading wildcards, mixed collations and an optimizer that judged a scan cheaper.
mysqlindexingperformance
November 25, 2026 · 4 min read
Reading EXPLAIN and EXPLAIN ANALYZE in MySQL
EXPLAIN shows how MySQL plans to run a query, and EXPLAIN ANALYZE shows what really happened. Learn the columns that matter and a repeatable method for tuning a slow query.
mysqlperformancesql
November 25, 2026 · 4 min read
Composite indexes and the leftmost prefix rule
A composite index is sorted by its first column, then the second, and so on. That order decides which queries it can seek, which it can sort, and which it cannot help at all.
mysqlindexingperformance
November 25, 2026 · 4 min read
Hot rows: when one balance becomes the bottleneck
A merchant wallet that receives hundreds of payments per second makes every transaction queue on the same row lock. Adding connections does not help. Splitting the row or batching the updates does.
mysqlperformancelocking
November 20, 2026 · 2 min read
Big-O notation in practice: what grows and what matters
Big-O describes how work grows with input size. Know the common classes, spot accidental quadratic code and remember that constants and measurement still matter.
algorithmsperformance