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

16 min read

Why TiDB Is Replacing Manual Sharding: Architecture, HTAP & Migration Guide

This article explains why TiDB is gaining adoption over manual sharding by detailing its native distributed architecture, automatic Region-based sharding, Raft-based strong consistency, HTAP capabilities with TiFlash, MySQL migration steps including AUTO_RANDOM for hotspot avoidance, AI-assisted slow query analysis, and a balanced pros/cons assessment with scenario-based recommendations.

62 min read

PostgreSQL vs MySQL: Operational Internals, Benchmarks & Selection Guide

This article compares PostgreSQL and MySQL across MVCC implementation, replication models, connection handling, version lifecycles, hardware costs, and benchmark results, providing production configurations, migration pitfalls, troubleshooting cases, and a decision framework for database selection.

11 min read

Zhihui Cloud MySQL Online Schema Change: Automated Safe Large-Table Alterations

Zhihui Cloud's MySQL online schema change platform automates safe large-table alterations through a six-step workflow—audit, dry-run, tool selection, controlled execution, runtime protection, and verification—supporting direct DDL, pt-osc, and gh-ost with real-time guards for MDL locks, replication lag, load, and disk space.

6 min read

PostgreSQL Fixes 52 CVEs: Critical CVE-2026-6460, AI Scanning Trend, v19 REPACK Preview

PostgreSQL released updates for versions 14 through 18 fixing 52 security vulnerabilities including critical CVE-2026-6460, while version 14 reaches end-of-life; experts attribute rising CVE counts to AI-assisted scanning, and PostgreSQL 19 RC2 introduces a new REPACK command for non-blocking space reclamation.

10 min read

Migrating dbt Metrics to Snowflake: Why Rolling Windows Break and How to Rebuild Them

The article details the migration of dbt metric definitions to Snowflake semantic views via Apache Ossie, revealing that rolling window metrics degrade to simple sums and cross-table filters cause import errors, requiring manual reconstruction and query-granularity validation to ensure numerical parity.

6 min read

DocumentDB 1.0: Open-Source PostgreSQL Document DB with MongoDB Wire Compatibility

Microsoft's DocumentDB 1.0 releases as an MIT-licensed PostgreSQL extension and gateway compatible with MongoDB wire protocol, offering Kubernetes support, security focus, and a permissive license alternative to MongoDB's SSPL, while benchmarks show mixed performance versus MongoDB and FerretDB.

9 min read

DBX: Lightweight Open-Source Database Client Connects 100+ Databases with AI Assistance

DBX is a lightweight (~25MB), open-source database client supporting 100+ databases, featuring AI-assisted SQL editing, ER diagrams, schema comparison, Redis/MongoDB browsers, plugin system, and three deployment modes: desktop, Docker web interface, and MCP integration for AI coding assistants.

11 min read

Why Database Connection Pools Don't Use I/O Multiplexing: JDBC's Blocking Legacy

This article explains why database connection pools rely on blocking I/O instead of I/O multiplexing, detailing how JDBC's synchronous API design, the need for a unified reactive runtime, and ecosystem fragmentation make connection pools simpler and more practical for most Java applications, while noting frameworks like Node.js and Vert.x that do use non-blocking drivers.

17 min read

Green Cluster ≠ Fast Cluster: A Production Troubleshooting & Tuning Framework for Easysearch

This article explains why an Easysearch cluster's green health status doesn't guarantee performance, and provides a comprehensive framework for production troubleshooting covering shard sizing, JVM tuning, thread pools, query optimization, monitoring dimensions, and a step-by-step diagnostic workflow.

44 min read

Redis Expiration & Eviction: 8 Strategies, Trade-offs & Source Code Analysis

This article analyzes Redis expiration deletion and memory eviction mechanisms, detailing eight eviction policies, their trade-offs, three production incidents, source code walkthroughs of lazy/active expiration and LFU/LRU approximations, and practical configuration guidelines for avoiding common pitfalls.

57 min read

Redis Cluster Deep Dive: Sharding, Slot Migration, and Failover Explained

This article provides a comprehensive technical analysis of Redis Cluster, covering its fixed 16384-slot partitioning, slot migration mechanics, MOVED vs ASK redirections, Gossip-based failure detection, replica election, hash tags, cross-slot limitations, and operational best practices with real-world incident case studies.

44 min read

Redis Replication & Sentinel: Async Sync, Backlog Mechanics & Failover Internals

This article dissects Redis master-slave replication and Sentinel failover through three real incidents, explaining the replid/offset/backlog trio for incremental sync, async replication trade-offs, Sentinel's quorum/majority election, brain-split risks, and production configuration formulas for backlog sizing and replication storm mitigation.

33 min read

Redis Object Encodings Deep Dive: SDS, Listpack, Skiplist Memory-Performance Tradeoffs

This article analyzes Redis's internal object encodings (SDS, listpack, skiplist, hashtable, intset, quicklist), their automatic conversion thresholds, memory overhead calculations, and practical pitfalls like silent encoding upgrades that quadruple memory usage, providing a framework for choosing data structures and diagnosing production issues.

51 min read

Why Redis Is So Fast: Four Core Pillars, Real Incidents, and Source Code Insights

This article explains why Redis is fast through four core factors—memory storage, single-threaded command execution, I/O multiplexing, and optimized data structures—illustrated with three real production incidents, source code walkthroughs of key components like SDS and incremental rehashing, and practical guidelines for avoiding common pitfalls such as big keys, hot keys, and misconfigured eviction policies.