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

11 min read

Why Memgraph Outperforms Neo4j for Ontology Reasoning: A Workload-Driven Analysis

This analysis argues Memgraph is better suited than Neo4j for online ontology reasoning workloads characterized by hot data, multi-hop traversals, and latency sensitivity, citing architectural advantages, independent benchmarks, and academic evaluations while defining clear boundary conditions where the conclusion reverses.

15 min read

Logical Delete vs Unique Index: The Duplicate Entry Trap and the Generated Column Fix

The article explains how logical deletion conflicts with unique indexes in MySQL, shows why a composite index on (code, deleted) only supports one delete-create cycle, and presents a robust solution using a generated column that becomes NULL when deleted, leveraging MySQL's allowance of multiple NULLs in unique indexes to enforce uniqueness only on active records.

27 min read

Zero-Downtime Database Migration: Stock, Incremental, Validation & Cutover in Spring Boot

A comprehensive engineering guide to zero-downtime database migration covering cursor-based stock migration, incremental sync via binlog or dual-write, CRC-based chunked validation, field-level diffing, gray read cutover with dual-read verification, write-switch patterns, and rollback procedures — all implemented in Spring Boot with production-grade patterns and pitfalls.

12 min read

Alibaba Cloud Elasticsearch Agent Engine: 70% Cost Reduction, 60ms P99 for 100M Tenants

Alibaba Cloud's Elasticsearch Agent Engine Edition achieves 70% cost reduction and 60ms P99 latency for multi-tenant AI search by separating storage on OSS from stateless compute, using per-tenant Slices and the DiskBBQ vector index with 1-bit quantization for 10x faster builds and zero cross-tenant I/O.

4 min read

OntoL-Manage 8.1: Switch Graph Databases by Config, Not Code

OntoL-Manage 8.1 introduces a graph database dialect layer that enables switching between Memgraph and Neo4j via a single configuration variable, abstracting away differences in constraint DDL, date functions, and timestamp units, with a defined migration process and validation criteria, while noting limitations like downtime and private extension incompatibility.

26 min read

EMR Serverless StarRocks × Lance: Unifying Multimodal Search and Analytics in One SQL

Alibaba Cloud's EMR Serverless StarRocks integrates Lance's vector search into its distributed SQL engine, enabling single-query hybrid retrieval and relational analytics on multimodal data, demonstrated by a 2-billion-vector e-commerce case achieving 16x faster hybrid search and 40x lower latency.

7 min read

PostgreSQL Outperforms MySQL 2-6x in High-Performance Benchmarks: Architectural Reasons

Benchmark tests on identical 4-core 16GB hardware show PostgreSQL 13 delivers 2x SELECT, 4-5x INSERT, and 5-6x UPDATE throughput over MySQL 8.0, with hot-row updates 8x faster, making PostgreSQL the preferred choice for high-performance workloads despite MySQL's larger ecosystem.

22 min read

ShardingSphere Sharding: Production Patterns, Pitfalls & Source-Code Deep Dive

This article details Spring Boot database sharding with ShardingSphere, covering sharding strategies, configuration, five-step SQL routing, rewrite and merge engines, distributed ID generation, pagination pitfalls, cross-shard joins, scaling procedures, and eight common pitfalls with troubleshooting tips.

95 min read

Redis Memory Growth, Eviction Policies & Large Key Governance: A Complete Operational Guide

This comprehensive guide analyzes Redis memory growth causes, details all eight eviction policies with their trade-offs, and provides battle-tested techniques for discovering and safely removing large keys without blocking the instance, backed by a real-world case study of a 1.3GB Hash with 1.2M fields.

20 min read

StarRocks + Paimon Global Index: From File Scans to Row-Level Lookups with BTree & Vector Search

StarRocks now supports Paimon Global Index for fine-grained data access, enabling BTree indexes for high-selectivity scalar filters and IVF-PQ vector indexes for approximate nearest-neighbor search, with a two-phase execution architecture that combines structured filtering and semantic retrieval in a single SQL query.

14 min read

MySQL Top 10 from 50M Rows: SQL Pitfalls, Pre-aggregation & Space-Saving Algorithm

This article walks through a big-tech interview question about finding top 10 hot items from 50M MySQL rows, revealing why naive SQL fails, how to clarify time windows and real-time needs, and explores solutions from pre-aggregated snapshots and partitioned parallel queries to the Space-Saving algorithm for approximate top-K with bounded memory.

20 min read

MySQL Configuration Deep Dive: Character Sets, Collations, Time Zones & SQL Modes with Hands-On Experiments

This tutorial demonstrates MySQL 8.0 configuration of character sets, collations, time zones, and SQL modes through reproducible experiments, showing how connection settings differ from server defaults, how utf8mb4 handles emojis, why TIMESTAMP converts across time zones while DATETIME does not, and how strict SQL mode rejects out-of-range values.