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

12 min read

8 Common SQL Mistakes That Are Destroying Your Database

The article identifies eight easy-to-overlook SQL habits—such as using SELECT *, applying functions on indexed columns, careless LIKE patterns, improper IN/OR logic, deep offset pagination, unconditional UPDATE/DELETE, excessive indexing, and ignoring execution plans—that can cause slow queries, lock tables, index failures, and even data loss, and provides concrete examples and safer alternatives.

12 min read

Why Using Snowflake IDs or UUIDs as MySQL Primary Keys Can Backfire

An in‑depth MySQL benchmark compares auto‑increment, UUID, and Snowflake‑style random long keys, showing how index structure, insert latency, and page fragmentation differ, and explains why auto‑increment keys usually outperform the others while also highlighting the security and lock‑contention drawbacks of sequential IDs.

8 min read

NewSQL in Practice: Overview, HTAP Architecture, and Real-World Migration Cases

This article introduces NewSQL databases, compares popular products such as TiDB, CockroachDB, SingleStore, and YugaByteDB, explains HTAP architecture and storage‑compute separation, demonstrates TiDB configuration and serverless scaling, and provides concrete migration and real‑time analytics examples with code snippets.

14 min read

How OceanBase Builds a Data Foundation for AI Agents

The article explains how OceanBase tackles AI‑agent challenges such as isolation, memory, and trial‑and‑error by introducing logical tenants, layered decoupling, hybrid search, database branching, multimodal large‑object storage, and Model‑in‑DB AI columns, backed by benchmark results and real‑world deployments.

25 min read

Common MySQL Connection Errors and Step‑by‑Step Troubleshooting Guide

MySQL connection failures are among the most frequent issues for developers and operators; this article systematically walks through typical error messages, explains how to collect relevant information, runs layered command checks, analyzes evidence, identifies root causes such as socket problems, bind‑address limits, host whitelist mismatches, authentication failures, connection‑limit exhaustion, and packet timeouts, and provides concrete fix and verification procedures for on‑premise, Docker, and Kubernetes deployments.

12 min read

Instant DB Creation & Auto‑Scale: How Volcano PostgreSQL Serverless Supercharges Feishu MiaoDa AI Development

The article explains how AI‑generated code can be delivered in seconds, but traditional databases add a ten‑minute bottleneck, and shows that Volcano Cloud PostgreSQL Serverless reduces instance creation to 10 seconds, speeds up branch operations 200‑fold, offers scale‑to‑zero, cuts costs by 99.99%, and provides a Data‑as‑Git workflow with a step‑by‑step recovery demo.

10 min read

Understanding Serverless Databases: PlanetScale, Neon, Supabase, and Turso

This article explains what serverless databases are, compares them with traditional databases, and provides detailed overviews, core concepts, and code examples for four major services—PlanetScale, Neon, Supabase, and Turso—highlighting features such as automatic scaling, pay‑as‑you‑go pricing, and global replication.

4 min read

How I/O Multiplexing Gives Redis a 10× Performance Boost

Redis achieves its high speed not only because it is an in‑memory, single‑threaded database with efficient data structures, but primarily thanks to I/O multiplexing, which lets a single thread manage tens of thousands of client connections, dramatically cutting thread‑switch overhead and boosting throughput up to tenfold.

38 min read

Database Performance Optimization: 100× Speed Gains Without Changing SQL

Even without rewriting any SQL, database performance can improve up to a hundredfold by first diagnosing bottlenecks, reducing unnecessary traffic, layering read paths, optimizing indexes, tuning connection pools, and progressively evolving from a single‑node setup to read‑write separation, sharding, and distributed read models.