The JusDB Database Engineering Blog

Deep dives on PostgreSQL, MySQL, MongoDB and more — performance tuning, high availability, migrations and production war stories from our DBAs.

22 canonical articlesBrowse the complete archive

Popular Searches

Latest Articles

Showing 10 of 22 articles

Improving Query Performance with Multi-Valued Indexes in MySQL 8.0

MySQL 8.0 introduced multi-valued indexes — allowing you to index individual elements of a JSON array so queries using MEMBER OF or JSON_OVERLAPS can use an index.

MySQL8 minJun 30, 2023
Read

UUIDs as Primary Keys: How We Destroyed Database Performance

UUIDs as primary keys can destroy database performance. Learn why 50M rows went from 0.5ms to 2.3ms inserts, and how to fix it with hybrid approaches.

PostgreSQL10 minJun 6, 2023
Read

PostgreSQL Index Bloat: Detection and Remediation

Identify bloated indexes in PostgreSQL using pgstattuple, REINDEX CONCURRENTLY, and automated monitoring

PostgreSQL11 minApr 11, 2023
Read

PostgreSQL JSONB vs JSON: Indexing, Performance, and When to Use Each

A deep dive into PostgreSQL JSONB vs JSON storage formats, GIN and B-tree indexing strategies, containment operators, and the performance characteristics that determine which to use for document storage workloads.

PostgreSQL12 minFeb 14, 2023
Read

PostgreSQL Full-Text Search: tsvector, GIN Indexes, and ts_rank in Production

A production guide to PostgreSQL full-text search — building tsvector generated columns, GIN indexes, multi-column search with setweight, ts_rank scoring, websearch_to_tsquery, and comparison against Elasticsearch.

PostgreSQL13 minJan 24, 2023
Read

MySQL Indexes Explained: Complete Data Structure Guide for Query Optimization

Master MySQL index data structures and optimization strategies. Learn B+ tree internals, index selection, covering indexes, and real-world performance case studies.

MySQL20 minJan 17, 2023
Read

MongoDB Atlas Search: Full-Text Search on Your MongoDB Data

Build full-text search with MongoDB Atlas Search — analyzers, scoring, autocomplete, and relevance tuning

MongoDB11 minDec 14, 2022
Read

MySQL Full-Text Search: FULLTEXT Indexes, MATCH AGAINST, and Boolean Mode

A production guide to MySQL full-text search — FULLTEXT index creation, MATCH AGAINST in natural language and boolean modes, the 50% rule, InnoDB vs MyISAM FTS, combining with B-tree indexes, and comparison against Elasticsearch.

MySQL11 minNov 14, 2022
Read

Advanced Indexing Strategies for Database Scalability

Deep dive into advanced database indexing strategies including composite indexes, covering indexes, and partial indexes. Optimize query performance with expert indexing techniques.

5 minSep 13, 2022
Read

Descending Indexes in MySQL 8.0: When and How to Use Them

MySQL 8.0 finally supports true descending indexes — eliminating the filesort that MySQL 5.7 required when sorting results in descending order. Here's how descending indexes work and when to add them.

MySQL7 minJul 15, 2022
Read
Newsletter

Get the latest database insights and expert tips delivered to your inbox.

Stay Connected

Subscribe to our RSS feed for instant updates.

RSS Feed