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

11 min read

Unified Lakehouse Retrieval: One SQL for Hybrid Keyword, Filter, and Vector Search

The article explains how Alibaba Cloud EMR Serverless StarRocks converges full-text, scalar, and vector search into a single engine using RRF for score fusion, In-Filter for predicate pushdown into vector search, and Partial Update for column-level annotation writes, reducing data movement and operational complexity.

46 min read

Last 10 Minutes Before Database Disk Full: Emergency Response Protocol for PostgreSQL & MySQL

A step-by-step guide for DBAs to handle database disk space emergencies in the final 10 minutes, covering confirmation, growth identification, safe buffering, write throttling, online expansion, and verification for PostgreSQL and MySQL, emphasizing evidence-driven actions over risky shortcuts.

26 min read

StarRocks + Paimon: Multimodal Data Lake Retrieval Architecture

This article details how StarRocks and Paimon combine to build a multimodal data lake retrieval system, covering architecture design, early filtering and on-demand reading principles, Paimon's Global Index, Paimon vs Lance selection, and real-world implementations in autonomous driving and AI data platforms at Alibaba.

42 min read

10B Rows into MySQL: From 231 Days to 3.5 Hours — The 6-Step Bulk Insert Playbook

This article details a six-step engineering playbook to bulk-insert 10 billion rows into MySQL, reducing time from 231 days to under 3.5 hours by combining sharding, true JDBC batching with rewriteBatchedStatements, LOAD DATA INFILE, temporary parameter tuning, parallel shard loading, idempotent checkpointing, and shadow-table swapping, while explaining B+ tree capacity math and common pitfalls.

26 min read

Why VictoriaLogs Is Fast: Architecture-First Performance Engineering in Go

This article dissects VictoriaLogs' performance engineering across four layers—data architecture (LSM-tree, time partitioning, log-stream locality), query optimization (sparse indexes, Bloom filters), columnar storage with type-specific encoding and compression, and Go runtime tuning—showing that reducing unnecessary work via smart data organization outweighs micro-optimizations.

29 min read

Database Ransomware Emergency Response: Attack Chain, Failure Scenarios & Recovery Strategies

This article analyzes ransomware attack chains targeting databases, classifies failure scenarios by deployment architecture, details emergency recovery procedures for seven scenarios, outlines six backup tiers with anti-ransomware ratings, and defines four recovery paths with applicability conditions and time estimates.

14 min read

MySQL 9.0+ Goes Full AI: Native Vectors, RAG & AutoML in One Database

MySQL 9.0+ introduces native VECTOR type, built-in semantic search with RAG, and AutoML via SQL, enabling AI workloads without external services; the article details three core capabilities, two deployment modes (local enterprise edition and cloud HeatWave), complete query logic, and three runnable code examples for vector storage, similarity search, and document-based RAG.

38 min read

Right-Sizing Database Connection Pools: From Guesswork to Capacity Budgeting

This article explains how to determine optimal database connection pool sizes by establishing a capacity budget, monitoring pool and database metrics, configuring HikariCP for PostgreSQL, and iteratively tuning based on workload characteristics rather than relying on generic formulas.

64 min read

MySQL High-Concurrency Optimization: From Diagnosis to Sharding with Seckill Case Study

A layered MySQL optimization guide for high-concurrency scenarios covering bottleneck diagnosis, SQL/index tuning, transaction/lock optimization, a three-layer seckill inventory implementation (Redis Lua, MQ async, sharded buckets), caching patterns, read-write separation, connection pooling, InnoDB tuning, and sharding trade-offs, with real production metrics showing P99 latency dropping from 1.2s to 85ms.

14 min read

Why Database Indexes Speed Up Queries: Binary Search & Disk I/O Explained

This article explains why database indexes accelerate queries by detailing disk storage mechanics, demonstrating binary search on 100,000 records reducing block scans from 20,000 to 14, covering clustered vs non-clustered indexes, index trade-offs, common failure cases like OR conditions, and practical SQL optimization techniques.

25 min read

Five Layers of Database High Availability: From WAL to Orchestrator Auto-Failover

This article systematically breaks down database high availability into five layers — single-node durability via WAL and two-phase commit, master-slave replication with async and semi-sync modes, GTID-based global transaction identification, consistent failover with fencing, and automated failover using Orchestrator and probe-agent — illustrating each with real-world failure cases and configuration details.

10 min read

MySQL 9.7 LTS Deep Dive: Free Enterprise Features, Hypergraph Optimizer, JSON DML

MySQL 9.7 LTS brings five enterprise features to community edition, introduces the Hypergraph optimizer with 22% geometric mean speedup on TPC-DS, adds DML support to JSON Duality Views, improves rolling upgrades and container CPU detection, and switches password hashing to PBKDF2-SHA512, while vector search remains experimental.

26 min read

Database High Availability: 5-Layer Architecture from WAL to Automated Failover

This article details a five-layer database high availability architecture: single-node crash recovery via WAL and two-phase commit, asynchronous and semi-synchronous replication trade-offs, GTID-based global transaction identification for seamless failover, fencing mechanisms to prevent split-brain, and Orchestrator with probe-agent for automated failure detection and failover execution.

28 min read

Database HA Deep Dive: Five Layers from WAL to Automated Failover

This article systematically explains database high availability through five layers: single-node crash recovery via WAL and two-phase commit, replication modes (async vs semi-sync) and RPO trade-offs, GTID-based global transaction identification for safe failover, fencing and PRS/ERS switching protocols to prevent split-brain, and Orchestrator's cross-check failure detection with probe-agent for automated failover.

25 min read

AdaBool: Adaptive Sparse Boolean Matrix Processing on GPU (SIGMOD 2027)

Tencent and HKU propose AdaBool, an adaptive GPU framework for sparse boolean matrix multiplication that dynamically selects offset arrays or bitmaps per block, achieving up to 264x throughput over cuSPARSE/cuBool and 2-7.9x memory reduction, deployed for million-ad real-time filtering.