{ "track": "Track 2: Query Plan on >=100,000 Skewed Messages and Backup/Restore Verification", "dataset": { "total_messages": 110044, "hot_chat_messages": 80000, "medium_chats": "4 chats x 5,000 messages = 20,000", "small_chats": "10 chats x 1,000 messages = 10,000", "deep_pagination_offset_tested": 50000 }, "write_cost_40k_messages": { "without_composite_index_ms": 2705.72, "with_composite_index_ms": 2739.69, "index_write_overhead_pct": 1.26 }, "query_plans_at_depth_50000": { "composite_keyset_index": { "index": "idx_messages_chat_created_id (chat_id, created_at ASC, id ASC)", "query_type": "Keyset: WHERE chat_id = $1 AND (created_at, id) > ($2, $3) ORDER BY created_at ASC, id ASC LIMIT 50", "node_type": "Limit", "execution_time_ms": 0.155, "shared_hit_blocks": 5, "shared_read_blocks": 0 }, "single_column_index_with_offset": { "index": "idx_messages_chat_only (chat_id)", "query_type": "Offset: WHERE chat_id = $1 ORDER BY created_at ASC, id ASC OFFSET 50000 LIMIT 50", "node_type": "Limit", "execution_time_ms": 51.121, "shared_hit_blocks": 1569, "shared_read_blocks": 0 }, "no_index_seq_scan": { "index": "NONE (Seq Scan + Top-N Sort)", "query_type": "Keyset without index", "node_type": "Limit", "execution_time_ms": 12.871, "shared_hit_blocks": 1578, "shared_read_blocks": 0 } }, "backup_and_restore": { "tool": "pg_dump -Fc / pg_restore", "backup_duration_ms": 701.29, "restore_duration_ms": 892.3, "source_messages_count": 110044, "restored_messages_count": 110044, "sample_sha256_before": "1e7c064d9dfbe2c5dd889df86a623fb5ea36d543ce8781e5995da2297a768eca", "sample_sha256_after": "1e7c064d9dfbe2c5dd889df86a623fb5ea36d543ce8781e5995da2297a768eca", "exact_match": true } }