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

24 min read

MySQL Indexes and Locking Mechanisms: Types, Principles, and Practical Examples

This article provides a comprehensive summary of MySQL indexing strategies including B+Tree and Hash structures, composite index leftmost prefix principles, and locking mechanisms covering transaction isolation levels, row/table locks, pessimistic/optimistic locking with practical SQL examples for InnoDB and MyISAM engines.

16 min read

MySQL Unique Indexes Allow Multiple NULLs: Why It Happens and How to Enforce True Uniqueness

This article explains why MySQL unique indexes permit multiple NULL values due to SQL's three-valued logic, demonstrates how this breaks upsert statements and causes silent duplicates, compares behavior across databases, and presents solutions using NOT NULL constraints, generated columns, and functional indexes to enforce true uniqueness.

8 min read

Billion-Scale Knowledge Graphs on a Single Machine: OntoL's Memgraph Architecture

OntoL demonstrates that the world's largest knowledge graphs — billions of nodes and edges — fit comfortably in a single-machine in-memory graph database (Memgraph), eliminating distributed sharding overhead and enabling nanosecond multi-hop traversals by co-locating the reasoning layer with storage.

9 min read

4 Patterns for MySQL-Redis Cache Consistency: Trade-offs Explained

This article explains why cache inconsistency occurs between MySQL and Redis, then analyzes four update patterns—delete-then-update, update-then-invalidate, read/write-through, and write-behind—detailing their execution flows, consistency guarantees, and trade-offs to help choose the best fit for your scenario.

17 min read

MySQL Auto-Increment ID Exhaustion: Table IDs, row_id, Xid, trx_id, thread_id Limits Explained

This article analyzes what happens when various MySQL auto-increment identifiers reach their maximum values, covering table auto_increment IDs (2^32-1), InnoDB row_id (2^48-1 wraparound causing data overwrites), Xid (2^64-1, resets on restart), trx_id (persistent max_trx_id, potential dirty reads at 2^48), and thread_id (2^32-1 with uniqueness enforcement).

24 min read

HikariCP Connection Pool: Wait Timeout, Leak Detection & Sizing Strategies

This article analyzes HikariCP connection pool timeout and leak issues through a production incident, explaining connectionTimeout behavior, leakDetectionThreshold mechanics, pool sizing formulas, transaction scope impact on connection hold time, maxLifetime and keepaliveTime configuration for network infrastructure, and practical troubleshooting using thread dumps and pool metrics.

28 min read

How to Install MySQL 8.0.46 on Linux with Verified Binaries and Secure Initialization

This tutorial walks through installing MySQL 8.0.46 on Kylin Linux using the official generic binary package, covering download verification via MD5 and GPG signature, dedicated user creation, configuration, data directory initialization, secure temporary password replacement, and read-write validation with restart persistence test.

13 min read

Why Graph Databases Aren't the Bottleneck for Ontology Products: Palantir's Evidence

The article argues that in ontology-driven enterprise systems, performance bottlenecks lie in data integration pipelines and business databases, not the graph database layer, using Palantir Foundry's architecture and Airbus Skywise's 1,000+ daily pipelines as evidence, and shows Memgraph's specs far exceed typical ontology loads.

67 min read

Vector Database Operations: Milvus vs Qdrant Deployment, Scaling & Troubleshooting

This article provides a comprehensive operational comparison of Milvus and Qdrant vector databases, covering architecture differences, version baselines, deployment procedures, scaling strategies, backup/restore methods, monitoring metrics, alerting rules, and troubleshooting scenarios to guide selection based on data scale, team capability, and long-term operational costs.

21 min read

StarRocks × Lance: Distributed Vector Search & Global Late Materialization for Multimodal Lakehouse

The article details StarRocks' integration with the Lance columnar format for multimodal lakehouse workloads, covering distributed index search, two materialization strategies (non-GLM and Global Late Materialization), and a 2-billion-vector case study achieving 40x latency reduction and 16x throughput over Ray+Lance.

16 min read

MySQL 8.0.22 Timezone Bug: Why Your Timestamps Are Off by 8 Hours and How to Fix It

This article explains the MySQL 8.0.22 timezone bug that causes timestamp discrepancies up to 13 hours, details JDBC driver parameters like serverTimezone, connectionTimeZone, preserveInstants, and forceConnectionTimeZoneToSession, and provides seven best practices for correct timezone configuration in Java applications.

17 min read

MySQL Deep Pagination: Why OFFSET 99980 Takes 4.68s and How to Cut It to 6ms

This article analyzes why MySQL LIMIT with large offsets causes severe performance degradation, explaining the server-layer mechanics of OFFSET, comparing index-scan vs full-table-scan execution paths, and demonstrating two optimization techniques — delayed join (covering index subquery) and cursor-based pagination — with benchmark results showing 4.68s reduced to 0.21s and 0.006s respectively on a 1.28M-row table.

15 min read

MySQL 8.0.46 Lab Setup: Verifying x86_64 Linux Baseline & Directory Layout

This tutorial establishes a verifiable baseline for installing MySQL 8.0.46 on Kylin Linux V11 (x86_64), covering system checks (glibc 2.38, architecture), resource validation (3.3 GiB RAM, 21 GiB disk), port 3307 availability, and a structured directory layout separating downloads, config, data, logs, runtime, and SQL scripts.

6 min read

Goodbye Navicat: 3 Free MySQL Client Alternatives Compared

This article reviews three free MySQL client tools—DBeaver, MySQL Workbench, and HeidiSQL—as alternatives to the paid Navicat, highlighting their supported databases, installation, language support, and unique features like built-in monitoring and ER diagrams in MySQL Workbench, which the author recommends for performance testing.