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

25 min read

Building a Custom Database Sharding Component with MyBatis: Migration Strategies & SQL Rewriting

This article details the design and implementation of a custom database sharding component built on MyBatis plugin architecture, covering sharding strategies, read/write policies (double-write/double-read), SQL parsing and rewriting for COUNT/SUM/ORDER BY, routing algorithms with distributed locks, parameter mapping handling, and solutions to migration challenges like ORDER BY alias errors and aggregate query merging.

14 min read

StarRocks Integrates Paimon C++ for Native Lake Query Execution

StarRocks integrates Paimon C++ (paimon-cpp) to enable native C++ execution paths for querying Apache Paimon tables, eliminating JNI overhead, supporting primary key merges and delete handling, and achieving 1.4-3.4x speedups in benchmarks while reusing StarRocks' caching, memory management, and query profiling.

23 min read

Jev: 100K SQL Classifications in 40s for $0.50, But Misses 26% of Critical Routing

TypeSafe AI's Jev model integrates into SQL databases and data pipelines for high-volume semantic classification, achieving 100K classifications in 40 seconds at $0.50, but Dataiku tests reveal a 26% miss rate on critical routing decisions, highlighting trade-offs between speed, cost, and accuracy for production use.

43 min read

MySQL Replication Lag Spikes to 10 Min: Topology Optimization Rescue Guide

This guide provides a systematic methodology to diagnose and resolve MySQL replication lag spikes, covering evidence collection, replication status analysis, parallel replication tuning, large transaction mitigation, topology isolation, safe configuration changes, replica rebuild procedures, and proactive monitoring setup.

14 min read

StarRocks Integrates Paimon C++ for 1.4–3.4x Faster Lake Queries via Native Execution

StarRocks adopts Apache Paimon's C++ implementation (paimon-cpp) to replace JNI calls for primary-key merges and delete-vector handling, cutting cross-language overhead and reusing StarRocks' cache, memory management, and Query Profile; benchmarks show 1.4–3.4× speedups on primary-key counts and wide-table aggregations.

23 min read

MySQL 8.0 Upgrade Guide: 20 Critical Migration Pitfalls from 5.7

This comprehensive guide details 20 critical technical checks for migrating from MySQL 5.7 to 8.0, covering authentication plugins, character sets, reserved words, strict SQL modes, replication setup, backup validation, and cutover procedures with executable SQL and bash examples.

13 min read

Doris vs StarRocks: Which OLAP Engine Fits Your Workload and Team?

This article provides a practical decision framework for choosing between Apache Doris and StarRocks for real-time OLAP workloads, comparing their architectural origins, licensing, optimal use cases, and guiding teams through self-hosted versus managed deployment decisions based on organizational capacity and query profiles.

7 min read

Why OFFSET/LIMIT Pagination Fails at Scale: Cursor-Based Alternative 1000x Faster

The article explains why OFFSET/LIMIT pagination causes full table scans and linear performance degradation with large offsets, demonstrates a 100k-row benchmark where cursor-based pagination using primary keys runs in 0.01s versus 12.80s for OFFSET, and recommends keyset pagination for scalable systems while noting limitations for tables without unique sequential columns.

13 min read

Why Elasticsearch Struggles on Domestic CPUs: Write, Search & Concurrency Issues Explained

The article analyzes why Elasticsearch underperforms on Chinese ARM-based CPUs — citing weak single-core performance, complex NUMA topologies, JDK selection pitfalls, version compatibility gaps, and unfair benchmarking — and evaluates Easysearch as a supported alternative with vendor-backed compatibility across major domestic chips and OSes.

13 min read

Why Database Indexes Speed Up Queries: Binary Search & Clustered Indexes Explained

This article explains how database indexes accelerate queries by leveraging sorted data structures and binary search, detailing disk I/O mechanics, clustered vs. non-clustered indexes, index trade-offs on write performance, and common SQL optimization pitfalls like OR conditions and leading wildcards that cause index invalidation.

5 min read

Why WeChat Stores Billions of Messages in SQLite: The Mobile Database Trade-offs

WeChat uses SQLite for chat storage because its embedded, zero-process design fits mobile constraints; ACID transactions and B+tree indexes ensure message durability and fast pagination; WAL enables concurrent reads/writes; SQLCipher encrypts per-device; sharding by session mitigates single-writer limits, offering a blueprint for local-first apps.

15 min read

MongoDB's AI Platform Pivot: Leadership Shakeup, 9.0 Release, and the Agent Engine Bet

A MongoDB Community Champion reports from MongoDB.local NYC, analyzing how the sudden CEO change contrasts with the cohesive launch of MongoDB 9.0, Atlas Infinite, and Atlas Agent Engine as a unified AI data platform strategy.