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

21 min read

Querying Paimon Semi-Structured Data with StarRocks: Variant, Shredding & SQL Practices

This article explains how StarRocks queries Paimon Variant data, covering the differences between regular Parquet JSON and Variant, the three-phase read architecture, Shredding optimization for hot paths, practical SQL examples using get_variant_* functions, and a decision framework for choosing between JSON, Plain Variant, Shredded Variant, and formal typed columns.

12 min read

Sonar-TS: Training-Free Natural Language Querying for Massive Time Series Databases

Sonar-TS introduces a training-free framework for natural language querying of massive time series databases, defining the new NLQ4TSDB problem, creating the NLQTSBench benchmark, and using a search-then-verify approach with symbolic indexing and code-based verification to find pattern matches across millions of data points.

17 min read

OpenSearch's Rise: 9.5x Faster Search, Read-Write Separation, and True Open Source

OpenSearch has evolved from an AWS fork of Elasticsearch into a Linux Foundation-hosted, Apache 2.0-licensed search platform with architectural innovations like segment replication, read-write separation, GPU-accelerated vector indexing, and native gRPC, delivering 9.5x query performance gains while offering full-stack free features and vendor-neutral governance.

15 min read

Hologres: One SQL Engine for Multimodal Data, AI Functions & Agent Memory

Hologres evolves from a real-time data warehouse into an AI data infrastructure, integrating multimodal data via Object Tables and Dynamic Tables, providing AI Functions for hybrid search within SQL, an AI Assistant for automated warehouse operations, and a long-term memory service for cross-session agent recall.

10 min read

MySQL Read-Write Separation Masterclass: Replication, Lag Solutions & HA Architecture

This comprehensive guide covers MySQL read-write separation from fundamentals to production implementation, including master-slave replication principles, replication lag causes and three enterprise-grade solutions, one-master-multi-slave architecture patterns, MHA automatic failover, Sharding-JDBC middleware configuration, and five critical production pitfalls to avoid.

9 min read

Why One MySQL UPDATE Blocks and Another Doesn’t: Row vs. Gap Locks Explained

The article examines a MySQL experiment where three transactions (A, B, C) interact on the same row, showing why transaction B’s UPDATE on a primary‑key field proceeds without waiting while transaction C’s UPDATE of the primary key blocks, due to the interplay of row‑level locks, gap locks, and the internal delete‑plus‑insert transformation of indexed updates.

15 min read

Why AI-Generated SQL Isn't Enough: Semantic Views Bridge the Business Logic Gap

This article explains why syntactically correct AI-generated SQL often fails to reflect business logic, introduces StarRocks' Semantic View as an executable 'information contract' that defines metrics, relationships, and synonyms, and demonstrates with a fishing gear example how it enables deterministic SQL expansion for both AI agents and BI tools.

15 min read

Why OpenSearch Is Gaining Massive Adoption: Architecture, Features, and Performance

OpenSearch, originally a fork of Elasticsearch, has become an independent Apache‑2.0‑licensed search and analytics platform governed by the Linux Foundation; its five‑layer architecture, segment replication, read/write separation, GPU‑accelerated vector indexing, and strong community growth deliver up to 9.5× query speed and make it a compelling choice over Elasticsearch.

8 min read

How MySQL Repeatable Read Solves Phantom Reads with MVCC and Next-Key Locks

This article explains how MySQL's Repeatable Read isolation level prevents phantom reads by combining MVCC snapshot reads for consistent views and Next-Key Locks (record + gap locks) to block inserts during current reads like UPDATE, detailing the ReadView mechanism, version chains, and a concrete phantom read scenario.

15 min read

I Finally Deleted the Java Code That Reads the Whole Redis Object to Update One Field

The article explains how the old pattern of GET‑ing an entire JSON string from Redis, deserializing it in Java, modifying a single field and writing it back is inefficient and error‑prone, and shows how Spring Data Redis 4.2’s RedisJsonTemplate lets you update or read individual JSON paths directly, reducing code, network traffic and race‑condition risks.

18 min read

How TSC-to-HPET Clock Source Downgrade Degrades Database Performance

This article explains why Linux kernels automatically switch from the high-performance TSC clock source to the slower HPET timer, details the technical differences between them, quantifies the 10-50% database throughput drop caused by the switch, and provides step-by-step troubleshooting commands to detect and resolve the issue.

7 min read

Why OFFSET Pagination Slows You Down: Switch to Keyset and Cut Latency from Seconds to Milliseconds

The article recounts how an API that originally used OFFSET pagination suffered 2‑3 seconds response time, and after rewriting the query to Keyset (Seek) pagination—adding a secondary sort key for stability and exploring cursor pagination, index‑only OFFSET, and materialized views—the same endpoint now responds in under 200 ms, with detailed benchmark comparisons.

10 min read

Master MySQL Slow Query Log: Full Hands‑On Workflow to Capture, Analyze, and Fix Slow SQL

This guide explains what the MySQL slow query log records, why it is essential for production, when and how to enable it temporarily or permanently, key parameters to tune, how to simulate slow queries, interpret log fields, use mysqldumpslow for aggregation, follow a step‑by‑step optimization pipeline, and avoid common pitfalls.

14 min read

Why Use ElasticSearch over MySQL? Key Differences for Interviews

The article explains why ElasticSearch excels at full‑text search and analytics while MySQL remains the reliable storage engine, compares their underlying data structures, outlines real‑time write behavior, lists scenarios where ES should not be used, and describes a production double‑store architecture with asynchronous sync.

16 min read

Redis Transforms into AI Data Infrastructure: Vector Search, Vector Sets, Semantic Cache & Agent Memory

This article details Redis's evolution into a comprehensive AI data infrastructure, covering its four core capabilities—vector search with hybrid queries, native Vector Sets data type, LangCache semantic caching for 70% LLM cost reduction, and Redis Iris context engine for AI agent memory—with technical implementations, performance benchmarks, and use-case recommendations.

11 min read

Building a Digital Intelligence Foundation: GoldenDB’s Core Foundations and AI‑Driven Integration

The article outlines GoldenDB’s evolution from a secure, commercial‑grade core database to an AI‑enabled, multi‑modal data platform, detailing its architecture, dual "DB for AI" and "AI for DB" strategy, autonomous operation framework, and the broader shift toward databases as intelligent, self‑evolving infrastructure.

10 min read

Master MySQL EXPLAIN: Full Field Breakdown of type, key, rows, Extra for Real‑World Tuning

The article explains that MySQL’s EXPLAIN command acts as a SQL health check, detailing each of its 12 fields—especially type, key, rows, and Extra—while providing real‑world examples, a step‑by‑step diagnostic workflow, and common pitfalls to help developers reliably tune and troubleshoot queries.