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

7 min read

Tencent's 4 Kernel Optimizations for Trillion-Scale Elasticsearch

Tencent shares four kernel-level Elasticsearch optimizations: memory-based smooth rate limiting to prevent cluster avalanches, Rollup pre-aggregation cutting storage costs 10x, moving FST off-heap to manage 50TB per node, and metadata scalability improvements supporting million shards with sub-5-second index creation.

30 min read

From Modeling to Systematic Theory: Tracing a Decade of Database Consistency Evolution (2020‑2025)

The article reviews a speaker’s ten‑year journey from building multi‑level consistency models and defining over twenty new data anomalies to exposing ANSI‑SQL’s isolation flaws, unveiling the “Eight Immortals” consistency diagram, proposing the CCDB architecture with zero‑time unlock, and finally codifying three concurrent‑system design principles.

6 min read

Final Chapter: Master SQL Server Stored Procedures – Batch Execution & Params

This concluding tutorial walks beginners through SQL Server stored procedures, highlighting their speed, reusability, and automation advantages over single statements and views, and demonstrates creating, invoking (with and without parameters), altering, and dropping procedures while sharing naming conventions and common pitfalls.

6 min read

Why Developers Are Migrating from MySQL to PostgreSQL: Technical Analysis

This article compares PostgreSQL and MySQL across complex query optimization, data types, MVCC implementation, transaction rollback capabilities, and cloud ecosystem support, explaining why PostgreSQL is increasingly preferred for complex analytics, vector search, and geospatial applications.

11 min read

MySQL Covering Index & Back‑Table Optimization: Hands‑On Guide to Eliminate Lookups

The article explains why MySQL back‑table lookups (回表) double I/O and degrade performance, defines covering indexes that retrieve all needed columns from a secondary index, shows how to identify back‑table cases via EXPLAIN, and provides step‑by‑step commands to create, test, and verify covering indexes for high‑frequency queries.

8 min read

Is Splitting Data Across Machines Distributed? Understand Sharding vs Distributed Systems

The article explains that merely placing data on multiple machines constitutes sharding—a way to split data for capacity—but true distributed systems require coordinated nodes that communicate, replicate, and handle failures, illustrated with an e‑commerce warehouse analogy and guidance on choosing between sharding and distributed databases.

6 min read

Mastering Database Transactions: Eliminate Data Chaos and Loss with ACID Basics

The article explains how database transactions ensure atomicity, consistency, isolation, and durability, showing why they are essential for preventing data inconsistency, loss, and reconciliation errors, and provides step‑by‑step SQL examples of successful and rolled‑back transactions along with practical tips for safe usage.

5 min read

Mastering MySQL Sharding: Principles, Architecture, and Real‑World Implementation

The article explains why high‑traffic MySQL deployments hit performance limits, introduces the concepts of vertical and horizontal sharding, and provides a step‑by‑step guide—including necessity assessment, shard key selection, schema design, middleware integration, and data migration—using an e‑commerce order system as a concrete example.

5 min read

Complete MySQL Master‑Slave Replication: Principles, Architecture, and Setup

MySQL master‑slave replication separates writes to the master and reads to one or more replicas, using binary logs to record changes; the article explains its core concepts, typical scenarios like read‑write splitting and high‑availability, and provides a step‑by‑step configuration guide covering server IDs, binlog settings, replication accounts, data initialization, GTID options, and status verification.

10 min read

Master MySQL Locks: Row, Table, and Gap Lock Basics, Pitfalls & Live Code

Understanding MySQL’s lock types—table, row, and gap locks—reveals how they act as resource tokens to ensure data consistency under concurrency, while the article details their characteristics, appropriate and prohibited use cases, common pitfalls like lock degradation and deadlocks, and provides hands‑on SQL examples to reproduce and avoid these issues.

6 min read

Mastering SQL Subqueries: Core Nested Query Techniques for Beginners

This guide explains why subqueries are essential after learning JOINs, outlines their core characteristics, common use cases, two main types, step‑by‑step examples—including single‑row, multi‑row, aggregate, and derived‑table queries—and lists five key rules to avoid pitfalls while showing when to prefer subqueries over JOINs.