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

27 min read

How to Diagnose MySQL Slow Queries Without Relying on Blind Indexing

This guide walks through a systematic approach to uncovering and fixing MySQL slow queries, covering slow‑query‑log configuration, log analysis with mysqldumpslow and pt‑query‑digest, EXPLAIN‑based execution‑plan inspection, index design principles, SQL rewrites, configuration tuning, and ongoing monitoring to prevent performance regressions.

8 min read

Redis Officially Launches RedisInsight: A Stunning GUI with Powerful Features

RedisInsight is a visual GUI for Redis that uniquely supports Redis Cluster, offers SSL/TLS connections, memory analysis and an integrated CLI; the article walks through downloading the package, configuring environment variables, starting the service on Linux, deploying it on Kubernetes with a YAML manifest, and using the UI to monitor and operate Redis instances.

6 min read

How to Eliminate MySQL Master‑Slave Lag: Parallel Replication, Read‑Routing, and Redis Marking

To address MySQL master‑slave replication lag, the article explains enabling parallel replication (setting slave_parallel_workers), routing reads to the master for latency‑sensitive operations, and using a Redis short‑term marker to direct recent writes to the master, while outlining configuration steps and trade‑offs.

36 min read

Beyond CRUD: Full‑Scale Production Guide for MySQL 8.4 LTS

This article walks through a complete production‑grade view of MySQL 8.4 LTS, explaining how a chain of traffic spikes, connection‑pool exhaustion, long transactions and replication lag can cause an avalanche, and then detailing the five core modules, seven production mechanisms, architectural evolution steps, incident post‑mortems, and concrete configuration and code examples to build a resilient MySQL service.

35 min read

Essential MySQL Backup and Recovery Process Every Ops Engineer Must Master

This comprehensive guide walks MySQL administrators through the fundamentals of backup and recovery, covering RPO/RTO concepts, tool comparisons (mysqldump, mydumper, xtrabackup), step‑by‑step scripts for full, incremental, and binlog backups, encryption, compression, troubleshooting, and best‑practice monitoring to ensure data safety and rapid restoration.

21 min read

MySQL Replication Lag Soars to 10 seconds? Three Parallel‑Replication Tricks to Fix It

When MySQL replication latency jumps from milliseconds to 10 seconds, blindly raising replica_parallel_workers won’t help; the article walks through diagnosing the delay, then applies three concrete parallel‑replication optimizations—enabling WRITESET on the source, configuring LOGICAL_CLOCK with appropriate applier workers, and optionally preserving commit order—while showing the required SQL commands, monitoring queries, and rollback steps.

8 min read

How AI Enhances Data Warehouses: Automated Modeling, SQL Generation, Smart Scheduling, and NLQ

The article explains that AI will not replace data warehouses but will transform them by introducing automated modeling, AI‑generated SQL, intelligent resource scheduling, and natural‑language query interfaces, enabling business users to interact with data directly and turning warehouses into self‑optimizing, intelligent decision engines.

10 min read

MetaDB Enables Databases to Truly Understand File Systems – Accepted to NSDI’27

MetaDB, the unified metadata layer for Baidu Cloud Storage, was accepted to NSDI'27 after more than five years of production use, delivering up to 10.7× higher same‑directory throughput, halving the required metadata machines, and addressing three fundamental shortcomings of generic distributed databases in handling file‑system metadata.

28 min read

Running MySQL in Docker: Avoiding Data Loss, Performance Drops & HA Gaps

This article analyzes the risks of running MySQL in Docker—data loss, I/O performance degradation, networking overhead, and HA gaps—and provides production-ready solutions including Docker Compose configs, custom my.cnf, backup scripts, Kubernetes StatefulSet examples, and a troubleshooting matrix for interview preparation.

7 min read

MySQL Index Ignored? Implicit Type Conversion Causes Full Table Scan

A MySQL query on a varchar column with an unquoted numeric literal triggered implicit type conversion, forcing a full scan of 2 million rows instead of an index lookup; adding quotes cut latency from 19 seconds to 50 ms. The article explains the mechanism, lists four other common index-invalidation patterns, and provides a quick EXPLAIN-based diagnosis checklist.

23 min read

StarRocks Stella 2.2: Unified Vector, Full-Text & AI Functions Across Lake Tables

Alibaba Cloud's EMR Serverless StarRocks Stella 2.2 unifies vector search, full-text search, and AI functions across both internal and lake tables (Paimon, Iceberg, Lance), enabling a single SQL interface for multimodal retrieval, AI-powered analytics, and RAG workloads without data movement.

30 min read

MySQL Accidental Deletion Recovery: Binlog Flashback, Delayed Replicas & Prevention

This guide details a production-ready MySQL accidental deletion recovery process: immediate damage control via read locks and replication break, then binlog flashback using position-based extraction or binlog2sql for reverse SQL generation, plus delayed replica failover, with prevention strategies including sql_safe_updates, delayed replicas, and backup drills.

26 min read

MySQL Disk Space Explodes: How Binary Logs Become the Hidden Culprit

MySQL servers can trigger alarming disk‑space warnings even when the data directory is small, because unchecked binary logs rapidly consume storage; this article explains the log’s purpose, why it grows, how to diagnose the issue, and provides step‑by‑step cleanup, configuration, replication, monitoring, and recovery best practices.

30 min read

MySQL Table Design Guide: Naming Conventions, Index Optimization & Production SQL Templates

This comprehensive guide covers MySQL table creation best practices including naming conventions, field type selection, index design principles, constraint strategies, and solutions for large-table performance, JSON querying, and logical deletion conflicts, with production-ready SQL templates and interview-focused insights.