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

30 min read

Optimizing Slow Queries, Sharding and Cache Consistency for Appointment System

This article walks through a comprehensive case study of a provincial medical appointment platform, diagnosing slow‑query bottlenecks, proposing patient‑id + create_time composite indexes, designing read‑write separation with replication, selecting patient_id for horizontal sharding, and implementing cache‑aside strategies to ensure consistency while handling cache avalanche, penetration and thundering‑herd scenarios.

5 min read

A 20 MB Open‑Source DB Client That Handles 80+ Databases, Replacing DBeaver and Navicat

DBX is a Rust‑and‑Tauri based, 20 MB single‑file, free, open‑source database client that supports over 80 relational, NoSQL, OLAP and search databases, includes an AI‑powered SQL assistant and native MCP server, and offers lightweight installation across macOS, Windows, Linux and Docker, positioning it as a modern alternative to DBeaver and Navicat.

29 min read

Common Causes and Fix Steps for MySQL Master‑Slave Replication Lag

This guide walks through why MySQL master‑slave replication lag occurs, the key metrics to monitor, a step‑by‑step troubleshooting flow, ten typical root causes, concrete remediation actions, verification methods, rollback plans, and production‑grade best practices for keeping replication latency near zero.

16 min read

When a Single Database Hits Its Limits: Sharding Principles and Migration Path

The article explains why sharding should be a last‑resort scaling option, describes vertical and horizontal partitioning, compares hash, range and directory sharding schemes, discusses hotspots, routing, data colocation, migration steps and tool choices, and warns about the operational complexity involved.

31 min read

How to Diagnose and Fix MySQL Deadlocks Without Just Restarting the Service

This article explains why MySQL deadlocks occur in production, distinguishes them from simple lock waits, and provides a step‑by‑step guide—including enabling deadlock logging, analyzing InnoDB lock types, and applying four practical solutions such as distributed locks, unique constraints, isolation‑level changes, and SQL reordering—to reliably troubleshoot and prevent deadlocks.

32 min read

How a Veteran DBA Tackles Financial Multi‑Database and Big Data Architecture

In this interview, senior DBA Yao Wei shares over a decade of hands‑on experience designing, testing, and operating heterogeneous database ecosystems for retail, internet, and financial services, detailing pre‑emptive DBA involvement, compatibility pitfalls, high‑availability strategies, automated validation pipelines, and migration to domestic databases.

10 min read

Does Adding an Index Lock the Table? JD Interview Deep Dive (Full Score Edition)

The article explains that whether adding an index locks a MySQL table depends on the version and DDL algorithm—MySQL 5.5 and earlier lock the whole table, 5.6‑5.7 use Online DDL with brief metadata locks, and 8.0+ can create secondary indexes instantly without locking, while primary, unique, and full‑text indexes always require locking.

16 min read

Implementing Continuous Invoice Numbers Using a Transactional Watermark Table

The article explains how to generate strictly sequential invoice numbers required by auditors by using a MySQL InnoDB watermark (water level) table combined with row locking and UPSERT within a single transaction, covering the workflow, concurrency handling, rollback versus void semantics, performance trade‑offs, and applicability limits.

19 min read

Milvus 3.0 External Tables: Patch‑Add Columns and Query Snapshots as Tables

This article dissects Milvus 3.0’s External Collection feature, explaining how function‑output fields extend source schemas, how additive‑only schema refresh patches manifests without moving source data, and how the milvus‑table format lets snapshots serve as zero‑copy external tables for both batch and serving workloads.

8 min read

How Oracle’s Grip Is Killing MySQL and Why the ‘Toy’ SQLite Is Rising

Oracle’s 2026 layoffs hit the MySQL team, community contributions fell 44% since 2017, while PostgreSQL climbs, and SQLite—once dismissed as a toy—now powers billions of devices and edge‑computing platforms, boosted by projects like LibSQL, Turso, Cloudflare D1 and Litestream, offering latency advantages over traditional servers.

19 min read

How Milvus 3.0 Embeds Fine‑Grained Ranking: L0 Early Prune, L2 Re‑Rank, and Native XGBoost Scoring

The article dissects Milvus 3.0's Function Chain, explaining how fine‑grained ranking is moved into the engine with a two‑stage L0 early‑prune and L2 post‑reduction design, native XGBoost scoring, typed protobuf pipelines, and the trade‑offs revealed by source‑code analysis and community discussions.

9 min read

How to Diagnose Database Performance Test Failures: Real‑World Cases and a Three‑Layer Method

The article presents a systematic, three‑layer approach to uncovering root causes of database performance test failures, illustrating each step with real‑world financial and e‑commerce case studies, key metrics to monitor, reproducible fault injection techniques, and a baseline‑driven change‑gate process.