Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Databases

12 min read

SQLite 2018 SQL Features: Window Functions, UPSERT, FILTER Clause & Boolean Logic

This article details SQLite's SQL enhancements from versions 3.22.0 to 3.26.0 in 2018, covering boolean literals with IS [NOT] TRUE/FALSE, window functions with OVER clause limitations, FILTER clause for aggregates, UPSERT via INSERT ON CONFLICT, and column renaming via ALTER TABLE RENAME COLUMN.

47 min read

MySQL Performance Optimization: Diagnosing Gradual Query Slowdown with EXPLAIN, Composite Indexes & Online DDL Safety

This comprehensive guide walks through a complete MySQL performance optimization cycle: classifying three types of gradual slowdown, setting up slow logs and digest metrics, using EXPLAIN ANALYZE and optimizer trace to pinpoint a full-table scan on a 62M-row orders table, adding a composite index (user_id, status, created_at) via safe online DDL with three safety barriers, and establishing monitoring to prevent regression.

88 min read

MySQL Replication Lag Troubleshooting: 7-Step Diagnostic Guide for 5.7/8.0

A comprehensive guide to diagnosing and resolving MySQL master-slave replication delay, covering root causes like large transactions, parallel replication misconfiguration, hardware bottlenecks, lock contention, missing indexes, network issues, and semi-sync replication, with practical tools, monitoring setup, and real-world case studies.

12 min read

Why GROUP BY + ORDER BY Crawls on 100M-Row MySQL Tables Despite Index Usage

This article explains why MySQL GROUP BY + ORDER BY queries become extremely slow on hundred-million-row tables even when EXPLAIN shows index usage, covering temporary tables, filesort, loose index scan limitations, scanning overhead, and solutions like pre-aggregated summary tables, partitioning, columnar engines, and query scope reduction.

24 min read

Helix Foundry: Graph & SQL Unite to Auto-Build Cross-Source Enterprise Ontology

Helix Foundry open-sources a local-first workflow combining HelixDB graph database and DuckDB OLAP to automatically construct enterprise ontologies from disparate SaaS sources, using deterministic entity resolution with AI-assisted descriptions, validated via snapshot-versioned SQL pipelines and human review.

21 min read

Milvus 3.0 Segment Explosion: 12% Seal Threshold, 24h TTL, 16 Compaction Slots

This article dissects Milvus 3.0's default segment sealing behavior — 12% fill threshold, 24-hour TTL, and 16 compaction slots — explaining how sharding, large batches, and delete chains multiply segment counts, why compaction falls behind due to queue and slot bottlenecks, and the correct troubleshooting order: seal conditions first, compaction health second, manual force merge or clustering compaction last.

11 min read

MySQL 9.7 LTS: OpenTelemetry, JSON Duality Writes & Hypergraph Optimizer Now in Community

MySQL 9.7.0 LTS brings enterprise-grade OpenTelemetry tracing, writable JSON Duality Views, and the Hypergraph optimizer to the community edition, while changing versioning to year-month format; the article details configuration steps, upgrade caveats, and default changes affecting replication and InnoDB logging.

12 min read

MySQL Index Optimization: Confirm Slow Queries, Prove Access Paths, Add Indexes Safely

This guide details a systematic approach to MySQL index optimization: verify slow queries using performance_schema and system metrics, prove access paths with EXPLAIN ANALYZE, create indexes with rollback strategies using ALGORITHM=INPLACE and LOCK=NONE, address deep pagination with keyset pagination and N+1 queries with batch loading, and validate improvements with latency percentiles and lock metrics.

16 min read

Why WeChat Uses SQLite for 1.3 Billion Users' Chat Records

This article explains why WeChat stores chat records locally using SQLite instead of cloud databases, detailing the cost savings, privacy benefits, and performance advantages of embedded databases, along with WeChat's custom WCDB framework, FTS5 full-text search, encryption, and the trade-offs of local-only storage.

9 min read

Why Adding Indexes Fails at Scale: Relational Big Data Architecture Patterns

This chapter from 'Architecture Fundamentals' details relational big data architecture patterns: sharding strategies, query optimization avoiding unbounded scans, async import/export with streaming I/O, idempotency, and a bottleneck-first evolution checklist that prioritizes product-level constraints over premature scaling.

31 min read

MySQL Replication Lag Spikes to 10s? 3 Key Parallel Replication Optimizations

This article details a systematic approach to diagnose and resolve MySQL 8.0 replication lag by enabling WRITESET on the source, configuring LOGICAL_CLOCK with optimal worker count on the replica, and preserving commit order, complete with diagnostic queries, configuration steps, and validation metrics.

14 min read

Why Milvus 3.0 Can't Find Just-Inserted Data: The Hidden 5-Second Consistency Window

This article explains why newly inserted vectors in Milvus 3.0 may not be immediately searchable, revealing that the default Bounded consistency level sets a 5-second grace period (GracefulTime) during which recent writes fall outside the query's guaranteed timestamp (GuaranteeTs). It details the underlying mechanisms — TSO timestamps, timetick propagation, query node water-level waiting, and the four consistency levels — and provides a troubleshooting decision tree to distinguish expected behavior from actual failures.

19 min read

Building Reliable Data Pipelines: Visual ETL, CDC Strategies, and Quality Checks Explained

This article explains why enterprises need professional data integration platforms, detailing sync strategies (full, incremental, CDC), visual ETL workflows with a sales analysis example, real-time computing options, data quality dimensions, and operational practices for scheduling, monitoring, and failure recovery.

29 min read

PostgreSQL Daily Operations: Connection Management, Slow Queries & VACUUM Maintenance

This article details PostgreSQL daily operations including connection management, slow query analysis using pg_stat_statements, and VACUUM maintenance for dead tuple cleanup, offering practical SQL queries, configuration guidance, and a checklist for DBAs and DevOps engineers.