Tagged articles
5000 articles
Page 6 of 50
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 10, 2025 · Databases

Why SELECT … FOR UPDATE Still Reads the Primary Key: MySQL Index Scan Deep Dive

This article examines why a SELECT … FOR UPDATE query that appears to use a covering index in MySQL actually performs a table‑row lookup, detailing indirect evidence from performance_schema locks and direct proof through InnoDB source code, and explains the necessity of accessing the primary key for transaction isolation.

Database InternalsIndex ScanInnoDB
0 likes · 9 min read
Why SELECT … FOR UPDATE Still Reads the Primary Key: MySQL Index Scan Deep Dive
Java Backend Technology
Java Backend Technology
Sep 10, 2025 · Databases

8 Proven MySQL Tricks to Supercharge Query Performance

This article walks through eight practical MySQL optimization techniques—including smarter LIMIT usage, avoiding implicit type conversion, rewriting UPDATE/DELETE with JOINs, handling mixed sorting, replacing EXISTS with joins, pushing predicates, narrowing result sets early, and leveraging WITH clauses—to dramatically reduce query execution time from seconds to milliseconds.

Query Planningdatabase indexingmysql
0 likes · 13 min read
8 Proven MySQL Tricks to Supercharge Query Performance
Architecture Digest
Architecture Digest
Sep 9, 2025 · Databases

How to Safely Add a Column to a Billion‑Row Order Table Without Downtime

When a core order table with tens of millions of rows needs a new column, naïve ALTER TABLE can lock the table and cause outages, so this article explores master‑slave switching, online schema‑change tools, JSON or redundant fields, and practical tips for low‑risk, production‑grade schema evolution.

DDLOnline Schema Changedatabase migration
0 likes · 7 min read
How to Safely Add a Column to a Billion‑Row Order Table Without Downtime
MaGe Linux Operations
MaGe Linux Operations
Sep 7, 2025 · Databases

Master MySQL Slow Query Analysis: Proven SQL Optimization Techniques to Boost Performance

This comprehensive guide walks you through diagnosing MySQL slow queries, from identifying root causes and configuring slow‑query logs to applying advanced indexing, query‑rewriting, and monitoring techniques—complete with real‑world case studies that demonstrate how to cut query times from seconds to milliseconds.

SQL Optimizationindexingmonitoring
0 likes · 28 min read
Master MySQL Slow Query Analysis: Proven SQL Optimization Techniques to Boost Performance
Raymond Ops
Raymond Ops
Sep 7, 2025 · Databases

Understanding MySQL 8 Directory Structure and Table Storage

This article explains the main directory layout of MySQL 8, the locations of data files, configuration files, system databases, and how InnoDB and MyISAM storage engines represent tables and indexes on the file system, including the use of system and file‑per‑table tablespaces.

ConfigurationDatabase DirectoryInnoDB
0 likes · 13 min read
Understanding MySQL 8 Directory Structure and Table Storage
Top Architect
Top Architect
Sep 7, 2025 · Databases

Mastering MySQL‑Elasticsearch Sync: Strategies, Pros, Cons, and Real‑World Use Cases

This article explores why MySQL alone struggles with large‑scale queries, introduces Elasticsearch as a complementary search engine, and compares several synchronization methods—including synchronous and asynchronous dual‑write, Logstash, binlog‑based, Canal, and Alibaba Cloud DTS—detailing their advantages, drawbacks, and typical application scenarios.

BinlogCanalDTS
0 likes · 18 min read
Mastering MySQL‑Elasticsearch Sync: Strategies, Pros, Cons, and Real‑World Use Cases
MaGe Linux Operations
MaGe Linux Operations
Sep 6, 2025 · Databases

How to Build a High‑Availability MySQL Master‑Slave Cluster and Automate Failover

This guide walks through the reasons for MySQL master‑slave replication, explains its core mechanisms, details step‑by‑step environment planning, configuration, data initialization, replication setup, monitoring, failover with MHA, read‑write splitting using ProxySQL, performance tuning, troubleshooting, and best‑practice recommendations for enterprise‑grade high availability.

Replicationfailoverhigh availability
0 likes · 27 min read
How to Build a High‑Availability MySQL Master‑Slave Cluster and Automate Failover
ITPUB
ITPUB
Sep 6, 2025 · Databases

Why OFFSET Slows Your API and How Keyset Pagination Boosts Speed

The article explains how using OFFSET for pagination can cause severe performance degradation as data grows, and demonstrates how switching to keyset (seek) pagination, optionally combined with cursor encoding, index‑only OFFSET, or materialized views, dramatically reduces query latency.

Database OptimizationKeyset Paginationmysql
0 likes · 8 min read
Why OFFSET Slows Your API and How Keyset Pagination Boosts Speed
Liangxu Linux
Liangxu Linux
Sep 6, 2025 · Databases

Why PostgreSQL Is Overtaking MySQL: Survey Data and Real‑World Insights

A recent Stack Overflow survey shows PostgreSQL surpassing MySQL in popularity, and the article explains the technical advantages, real‑world performance tests, and evolving use cases that make PostgreSQL the preferred choice for many developers while still acknowledging MySQL’s enduring role for beginners.

data analysisdatabase comparisonmysql
0 likes · 5 min read
Why PostgreSQL Is Overtaking MySQL: Survey Data and Real‑World Insights
Su San Talks Tech
Su San Talks Tech
Sep 3, 2025 · Databases

Why Does MySQL GROUP BY Slow Down and How to Fix It

This article explains why a MySQL GROUP BY query can degrade from seconds to minutes as data grows, shows how to locate the bottlenecks with EXPLAIN and profiling tools, and provides practical indexing, query rewriting, temporary‑table tuning, batch aggregation, and distributed‑database strategies to restore performance.

GROUP BYindexingmysql
0 likes · 13 min read
Why Does MySQL GROUP BY Slow Down and How to Fix It
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 29, 2025 · Databases

Why MySQL Returns Old Values After Update: Inside InnoDB Snapshot Reads

This article investigates a puzzling MySQL behavior where a row updated within a transaction sometimes returns its previous value, explains the role of InnoDB's snapshot reads and ReadView, reproduces the issue, and offers practical ways to prevent the “update disappearance” scenario.

InnoDBSnapshot ReadUpdate Anomaly
0 likes · 18 min read
Why MySQL Returns Old Values After Update: Inside InnoDB Snapshot Reads
Su San Talks Tech
Su San Talks Tech
Aug 29, 2025 · Backend Development

Why Switching to MyBatis‑Plus Can Break LocalDateTime Handling and How to Fix It

The article walks through replacing MyBatis with MyBatis‑Plus in a legacy project, explains the LocalDateTime conversion errors caused by version changes in MyBatis and mysql‑connector‑java, shows how upgrading the JDBC driver resolves the issue, and shares lessons on cautious component upgrades and testing.

LocalDateTimeVersion Compatibilitybackend-development
0 likes · 8 min read
Why Switching to MyBatis‑Plus Can Break LocalDateTime Handling and How to Fix It
MaGe Linux Operations
MaGe Linux Operations
Aug 26, 2025 · Databases

How I Cut MySQL Query Time from 20 Seconds to 200 Milliseconds

In this detailed case study, the author walks through a real‑world MySQL slow‑query incident, analyzes execution plans, logs, and profiling data, and applies a four‑step optimization strategy—including index creation, query rewriting, covering indexes, and materialized views—to reduce execution time from 20 seconds to 200 milliseconds, achieving over 100× speedup.

indexingmysqlslow-query
0 likes · 23 min read
How I Cut MySQL Query Time from 20 Seconds to 200 Milliseconds
Java Tech Enthusiast
Java Tech Enthusiast
Aug 26, 2025 · Databases

6 Proven Strategies to Safely Add Columns to Billion‑Row MySQL Tables

This article explores why adding columns to massive MySQL tables can lock the database, explains the risks, and presents six practical solutions—including native online DDL, downtime maintenance, PT‑OSC, logical migration with dual writes, gh‑ost, and partition sliding windows—along with best‑practice tips for monitoring, backup, and performance.

Large TablesOnline DDLSchema Migration
0 likes · 11 min read
6 Proven Strategies to Safely Add Columns to Billion‑Row MySQL Tables
Sanyou's Java Diary
Sanyou's Java Diary
Aug 25, 2025 · Databases

Understanding MySQL Next-Key Locks: Preventing Phantom Reads and Deadlocks

This article explains MySQL InnoDB's Next-Key Lock mechanism, how it combines row and gap locks to prevent phantom reads under the REPEATABLE READ isolation level, illustrates lock ranges with examples, discusses when it degrades to row or gap locks, and highlights its advantages and potential deadlock risks.

InnoDBNext-key Lockdeadlock
0 likes · 8 min read
Understanding MySQL Next-Key Locks: Preventing Phantom Reads and Deadlocks
dbaplus Community
dbaplus Community
Aug 24, 2025 · Databases

Why Big Tech Chooses RC Over MySQL’s Default RR Isolation Level

This article explains the differences between MySQL’s default REPEATABLE READ (RR) and READ COMMITTED (RC) isolation levels, why large internet firms switch to RC, the mechanics of master‑slave replication, the three binlog formats, and how gap locks affect consistency and performance.

BinlogIsolation LevelRC
0 likes · 10 min read
Why Big Tech Chooses RC Over MySQL’s Default RR Isolation Level
Cognitive Technology Team
Cognitive Technology Team
Aug 24, 2025 · Databases

When Auto‑Increment IDs Exhaust: Risks and Scalable Solutions for MySQL & PostgreSQL

This article examines how auto‑increment primary keys work, the limits of common integer types, the failures that occur when those limits are reached, and practical strategies—including type upgrades, distributed ID generators, sharding, and sequence cycling—to prevent and mitigate ID exhaustion in high‑traffic MySQL and PostgreSQL deployments.

auto_incrementdatabase scalingdistributed-id
0 likes · 9 min read
When Auto‑Increment IDs Exhaust: Risks and Scalable Solutions for MySQL & PostgreSQL
macrozheng
macrozheng
Aug 23, 2025 · Backend Development

Backend Essentials: TCP/UDP, HTTP, Linux, MySQL Indexes & C++ Basics

This article compiles essential backend knowledge, covering TCP vs UDP differences, why HTTP uses TCP, HTTP/2 and HTTP/3 improvements, status codes, long vs short connections, key Linux process commands, MySQL B+Tree indexing, C++ struct/class nuances, STL container types, map thread‑safety, and queue versus stack distinctions.

HTTPLinuxNetwork Protocols
0 likes · 19 min read
Backend Essentials: TCP/UDP, HTTP, Linux, MySQL Indexes & C++ Basics
MaGe Linux Operations
MaGe Linux Operations
Aug 22, 2025 · Databases

How to Turn Slow MySQL Queries into Millisecond Responses: Real‑World Optimization Case Study

This article walks through a real e‑commerce incident where order queries took 15‑30 seconds, identifies bottlenecks via system metrics and slow‑query logs, analyzes execution plans, adds composite indexes, rewrites SQL, applies partitioning, read‑write splitting and caching, and ultimately achieves up to a 230‑fold performance boost.

Database Monitoringmysqlperformance tuning
0 likes · 15 min read
How to Turn Slow MySQL Queries into Millisecond Responses: Real‑World Optimization Case Study
Selected Java Interview Questions
Selected Java Interview Questions
Aug 22, 2025 · Databases

How to Recover Accidentally Deleted MySQL Data Using Binlog

This guide explains how to restore mistakenly deleted MySQL rows by leveraging binary logs, covering binlog activation, mode configuration, locating relevant log files, extracting the original INSERT statements or generating reverse DELETE statements, and using open‑source tools to automate the recovery process.

BackupBinlogData Recovery
0 likes · 17 min read
How to Recover Accidentally Deleted MySQL Data Using Binlog
Architect's Guide
Architect's Guide
Aug 22, 2025 · Backend Development

Can JDBC Batch Insertion Speed Up MySQL? 100M Row Performance Test

This article evaluates the efficiency of inserting massive data into MySQL using Java, comparing three strategies—MyBatis without transactions, plain JDBC with and without transactions, and JDBC batch processing—showing that batch processing combined with transactions yields the fastest insertion speed for hundreds of millions of rows.

Batch ProcessingJDBCjava
0 likes · 13 min read
Can JDBC Batch Insertion Speed Up MySQL? 100M Row Performance Test
dbaplus Community
dbaplus Community
Aug 21, 2025 · Databases

Mastering MySQL Deep Pagination: 6 Proven Optimization Techniques

When a massive e‑commerce order table suffers from MySQL’s deep pagination slowdown, this article dissects the root causes and presents six battle‑tested solutions—including cursor pagination, deferred joins, covering indexes, partitioning, precomputed pages, and Elasticsearch integration—to dramatically improve query performance.

Database Optimizationindexingmysql
0 likes · 9 min read
Mastering MySQL Deep Pagination: 6 Proven Optimization Techniques
Laravel Tech Community
Laravel Tech Community
Aug 20, 2025 · Databases

Three Powerful Ways to Perform Cumulative Queries in SQL

This article explains three techniques for performing cumulative queries in SQL—using a subquery, a Cartesian product with grouping, and a window function—detailing when each method is appropriate, especially for MySQL versions lacking native window support.

Subquerycartesian joincumulative query
0 likes · 2 min read
Three Powerful Ways to Perform Cumulative Queries in SQL
Ops Community
Ops Community
Aug 20, 2025 · Databases

How MySQL Master‑Slave Replication and Read‑Write Splitting Turn a Single Server into a High‑Availability Architecture

This article walks through why a single MySQL instance often fails under load, explains the fundamentals of asynchronous master‑slave replication and read‑write splitting, provides step‑by‑step configuration scripts, highlights common pitfalls with solutions, and shows advanced optimization and monitoring techniques for building a scalable, high‑availability MySQL architecture.

ProxySQLhigh availabilitymysql
0 likes · 16 min read
How MySQL Master‑Slave Replication and Read‑Write Splitting Turn a Single Server into a High‑Availability Architecture
ITPUB
ITPUB
Aug 18, 2025 · Databases

Generating Ultra‑Short Numeric IDs in MySQL: From Snowflake to Custom Schemes

This article explores how to replace long Snowflake IDs with concise numeric account IDs by leveraging MySQL auto‑increment tables, addressing deadlock pitfalls of REPLACE INTO, and evaluating alternative batch‑allocation and sharding strategies before presenting a final free‑ID table design.

Database designID generationauto_increment
0 likes · 15 min read
Generating Ultra‑Short Numeric IDs in MySQL: From Snowflake to Custom Schemes
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 18, 2025 · Databases

Unlocking LeetCode’s Hardest SQL Problem with Window Functions

This article examines LeetCode problem 185 – the hardest SQL challenge – by preparing the Employee and Department tables, presenting two solution approaches (a subquery and a window‑function version), benchmarking their performance on large test data, and explaining why window functions are the superior choice in MySQL 8+.

LeetCodemysqlperformance
0 likes · 10 min read
Unlocking LeetCode’s Hardest SQL Problem with Window Functions
Liangxu Linux
Liangxu Linux
Aug 16, 2025 · Fundamentals

Essential CentOS, Database, and Networking Interview Topics

A comprehensive guide covering essential Linux CentOS commands, MySQL installation and configuration, and detailed networking concepts from link layer to application layer, complete with command examples, interview questions, and practical tips for system administrators.

CommandLineInterviewPrepNetworking
0 likes · 23 min read
Essential CentOS, Database, and Networking Interview Topics
Sanyou's Java Diary
Sanyou's Java Diary
Aug 14, 2025 · Databases

Deep Dive into MySQL InnoDB Tablespaces, Undo Logs, and Doublewrite Buffer

This article explores MySQL InnoDB's memory and on‑disk architecture, detailing tablespace types, table and row formats, primary key strategies, index structures, the doublewrite buffer, redo log, undo log, and temporary tablespaces, complete with diagrams and code examples for practical understanding.

Doublewrite BufferInnoDBTablespaces
0 likes · 25 min read
Deep Dive into MySQL InnoDB Tablespaces, Undo Logs, and Doublewrite Buffer
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Aug 14, 2025 · Backend Development

How to Build a Strictly Incremental Distributed ID System with Redis, MySQL, and Nacos

This article examines the limitations of traditional database‑based ID generation, compares common distributed ID solutions such as UUID, Snowflake, Baidu uid‑generator and Meituan Leaf, and presents a custom strictly incremental ID scheme that combines database segment allocation, Redis caching, and Nacos‑controlled mode switching.

ID generationNacosmysql
0 likes · 11 min read
How to Build a Strictly Incremental Distributed ID System with Redis, MySQL, and Nacos
Liangxu Linux
Liangxu Linux
Aug 13, 2025 · Databases

Unlock MySQL Mastery: A Complete Theory & Hands‑On Guide

This comprehensive guide walks you through MySQL fundamentals and advanced features, covering database architecture, storage engines, data types, CRUD operations, complex queries, transactions, indexing, performance tuning, replication, JSON handling, full‑text search, and best practices for security and backup.

CRUDTutorialdatabase
0 likes · 27 min read
Unlock MySQL Mastery: A Complete Theory & Hands‑On Guide
JD Cloud Developers
JD Cloud Developers
Aug 13, 2025 · Backend Development

Why Do MySQL PhantomReferences Cause Long GC Pauses and How to Fix Them?

This article analyzes frequent timeout alerts caused by the getUiToken API, investigates JVM garbage‑collection pauses linked to excessive PhantomReference objects from MySQL connections, and presents configuration, code, and scheduling solutions that dramatically reduce GC latency and improve service stability.

ConnectionPoolJVMPhantomReference
0 likes · 12 min read
Why Do MySQL PhantomReferences Cause Long GC Pauses and How to Fix Them?
JD Tech Talk
JD Tech Talk
Aug 13, 2025 · Backend Development

Why MySQL getUiToken Times Out: PhantomReference GC Bottleneck & Fix

The article investigates frequent timeout alerts on the getUiToken API, tracing the issue to excessive PhantomReference objects causing long GC pauses, explains how MySQL’s AbandonedConnectionCleanupThread and default Druid pool settings generate these references, and presents configuration tweaks, JVM flags, and cleanup tasks that reduced GC pause times from 1.25 s to 0.1 s.

DruidPhantomReferencegc
0 likes · 11 min read
Why MySQL getUiToken Times Out: PhantomReference GC Bottleneck & Fix
macrozheng
macrozheng
Aug 12, 2025 · Backend Development

Sync MySQL to Elasticsearch in Minutes with DBSyncer and Docker

This guide introduces the open‑source DBSyncer tool, explains its key features, shows how to install it via Docker, and provides a step‑by‑step example of synchronizing a MySQL product table to an Elasticsearch index, including configuration, field mapping, and verification.

BackendDBSyncerDocker
0 likes · 6 min read
Sync MySQL to Elasticsearch in Minutes with DBSyncer and Docker
macrozheng
macrozheng
Aug 11, 2025 · Databases

Why MySQL Auto‑Increment IDs Hit Their Limit and How to Fix It

This article recounts a real‑world MySQL incident where the auto‑increment INT overflowed after billions of rows, explores why the ID limit was reached, evaluates three remediation strategies—including switching to BIGINT, distributed IDs, and sharding—and shares practical SQL scripts and performance insights.

BIGINTStored Procedureauto_increment
0 likes · 9 min read
Why MySQL Auto‑Increment IDs Hit Their Limit and How to Fix It
Liangxu Linux
Liangxu Linux
Aug 10, 2025 · Databases

Master MySQL Backup & Recovery: Complete Guide for Reliable Data Protection

This comprehensive guide explains MySQL data backup and recovery strategies, covering backup types, planning principles, built‑in tools like mysqldump and mysqlpump, third‑party solutions such as Percona XtraBackup, scripting for automated schedules, storage options, encryption, monitoring, troubleshooting, and best‑practice recommendations to ensure data safety and business continuity.

BackupRecoveryautomation
0 likes · 22 min read
Master MySQL Backup & Recovery: Complete Guide for Reliable Data Protection
Xiaohongshu Tech REDtech
Xiaohongshu Tech REDtech
Aug 7, 2025 · Databases

Achieving RPO=0: How XiaoHongShu’s Binlog Server Boosts MySQL Replication Speed and Data Consistency

This article explains how XiaoHongShu’s database team built a lightweight Binlog Server to accelerate semi‑synchronous MySQL replication beyond 300 MB/s, achieve RPO=0 data‑loss‑free failover, and improve high‑availability without manual intervention, backed by performance tests and detailed architecture diagrams.

Binlog ServerRPO=0Semi‑synchronous Replication
0 likes · 15 min read
Achieving RPO=0: How XiaoHongShu’s Binlog Server Boosts MySQL Replication Speed and Data Consistency
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 7, 2025 · Databases

Unlock MySQL REST Service: Step‑by‑Step Installation and API Guide

This tutorial walks you through installing MySQL REST Service on Oracle Linux, configuring the metadata schema, using MySQL Shell in VS Code, loading the component, managing variables, handling X‑protocol settings, creating services, and authenticating via MRS, MySQL Internal, cookie or JWT, with full command‑line examples and code snippets.

AuthenticationJSONMySQL Shell
0 likes · 17 min read
Unlock MySQL REST Service: Step‑by‑Step Installation and API Guide
macrozheng
macrozheng
Aug 7, 2025 · Databases

Boost MySQL Performance: 8 Proven SQL Optimization Techniques

This article explores eight common MySQL performance pitfalls—from inefficient LIMIT clauses and implicit type conversions to suboptimal JOIN updates, mixed sorting, EXISTS usage, condition pushdown, early result limiting, and intermediate result set handling—offering rewritten queries and execution plan analyses that dramatically improve execution times.

Database IndexesQuery RewriteSQL Optimization
0 likes · 13 min read
Boost MySQL Performance: 8 Proven SQL Optimization Techniques
Lobster Programming
Lobster Programming
Aug 6, 2025 · Databases

Understanding MySQL Row Overflow and InnoDB Row Formats

This article explains why MySQL row overflow occurs, compares the four InnoDB row formats, shows how overflow data is stored, discusses performance and space impacts, and offers practical tips to prevent overflow by optimizing schema and page size settings.

Database OptimizationInnoDBRow Overflow
0 likes · 4 min read
Understanding MySQL Row Overflow and InnoDB Row Formats
ITPUB
ITPUB
Aug 5, 2025 · Databases

Recovering Accidentally Deleted MySQL Metadata on CDH Without Downtime

This guide details how to restore a CDH cluster after MySQL metadata loss caused by an accidental deletion of the MySQL data directory, covering database locking, locating deleted file handles, reconstructing shared and independent tablespaces, and verifying consistency to bring the platform back online quickly.

CDHData RecoveryDatabase Administration
0 likes · 6 min read
Recovering Accidentally Deleted MySQL Metadata on CDH Without Downtime
macrozheng
macrozheng
Aug 5, 2025 · Databases

Migrate SpringBoot MyBatis from MySQL to PostgreSQL: A Complete Guide

This guide walks you through converting a SpringBoot + MyBatisPlus project from MySQL to PostgreSQL, covering driver setup, JDBC configuration changes, common SQL syntax pitfalls, and provides helper scripts for bulk column adjustments and default value settings.

JDBCSQL pitfallsSpringBoot
0 likes · 12 min read
Migrate SpringBoot MyBatis from MySQL to PostgreSQL: A Complete Guide
Java Web Project
Java Web Project
Aug 4, 2025 · Databases

Why Docker May Not Be Ideal for MySQL: N Critical Reasons Explained

The article analyzes why running MySQL in Docker containers can cause data‑security risks, performance bottlenecks, state management problems, and insufficient resource isolation, while also outlining scenarios where containerization might still be viable.

DockerResource Isolationcontainerization
0 likes · 8 min read
Why Docker May Not Be Ideal for MySQL: N Critical Reasons Explained
Senior Tony
Senior Tony
Aug 4, 2025 · Databases

Understanding MySQL Master‑Slave Replication: Core Principles, Modes, and Latency Mitigation

This article provides a comprehensive overview of MySQL master‑slave replication, explaining its core mechanisms, the push‑pull hybrid model, replication modes (asynchronous, full‑sync, semi‑sync), binlog formats, and practical strategies to reduce replication lag caused by large transactions, server load, and network constraints.

AsynchronousBinlogReplication
0 likes · 9 min read
Understanding MySQL Master‑Slave Replication: Core Principles, Modes, and Latency Mitigation
dbaplus Community
dbaplus Community
Aug 3, 2025 · Databases

Why SQLite Beats MySQL for 90% of Web Apps: Performance & Deployment Insights

A thorough benchmark shows that for typical read‑heavy, single‑server web applications SQLite can be up to twenty times faster than MySQL, while also offering simpler deployment, lower cost, and adequate scalability, though MySQL still wins in high‑concurrency write‑intensive scenarios.

Database PerformanceSQLiteWeb Development
0 likes · 10 min read
Why SQLite Beats MySQL for 90% of Web Apps: Performance & Deployment Insights
MaGe Linux Operations
MaGe Linux Operations
Aug 3, 2025 · Databases

Why MySQL Replication Lag Can Crash Your System – Binlog, Semi‑Sync & GTID Explained

An experienced DBA recounts a midnight MySQL replication disaster where slave lag exceeded 60 seconds, then dissects the root causes—binlog formats, semi‑synchronous replication, and GTID—offering detailed configurations, performance tweaks, monitoring scripts, and best‑practice recommendations to prevent and resolve such failures.

GTIDReplicationmysql
0 likes · 15 min read
Why MySQL Replication Lag Can Crash Your System – Binlog, Semi‑Sync & GTID Explained
MaGe Linux Operations
MaGe Linux Operations
Aug 1, 2025 · Databases

Master MySQL Slow Query Fixes: From Index Tuning to Distributed Sharding

This comprehensive guide walks MySQL administrators through diagnosing slow queries, configuring the slow‑query log, leveraging EXPLAIN, optimizing indexes, rewriting joins, implementing pagination tricks, and scaling with read‑write splitting, master‑slave replication, and horizontal sharding to dramatically improve performance in high‑traffic production environments.

Index Optimizationmysqlsharding
0 likes · 21 min read
Master MySQL Slow Query Fixes: From Index Tuning to Distributed Sharding
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jul 30, 2025 · Databases

Seamless Multi-DataCenter Database Migration: Strategies and Domain Scheduling

Learn how to execute a zero‑downtime, risk‑controlled database migration across data centers using pre‑expansion, cross‑room master switch, intelligent domain scheduling, and step‑by‑step operational guides—including VIP handling, global vs. zone‑specific domains, and post‑migration validation—to ensure continuous service and optimal resource elasticity.

Domain SchedulingZero Downtimedatabase migration
0 likes · 13 min read
Seamless Multi-DataCenter Database Migration: Strategies and Domain Scheduling
macrozheng
macrozheng
Jul 30, 2025 · Backend Development

Why Replacing MyBatis with MyBatis‑Plus Can Break LocalDateTime Handling (and How to Fix It)

A developer upgraded an old Spring Boot project by swapping MyBatis for MyBatis‑Plus, ran into a Conversion not supported for java.time.LocalDateTime error, traced the root cause to MyBatis 3.5.1 delegating type conversion to an outdated mysql‑connector‑java, and resolved it by upgrading the connector and adjusting validation logic, illustrating the ripple effects of component upgrades.

ORMjavamybatis-plus
0 likes · 9 min read
Why Replacing MyBatis with MyBatis‑Plus Can Break LocalDateTime Handling (and How to Fix It)
macrozheng
macrozheng
Jul 28, 2025 · Databases

Why MySQL Pagination Slows Down at Scale and How to Speed It Up

This article examines how MySQL pagination performance degrades as table size grows, presents benchmark results for various offsets, defines slow SQL thresholds, and offers three optimization strategies—including selecting only primary keys, ID‑based filtering, and leveraging Elasticsearch—to dramatically improve query speed.

Elasticsearchdatabasemysql
0 likes · 10 min read
Why MySQL Pagination Slows Down at Scale and How to Speed It Up
Lobster Programming
Lobster Programming
Jul 28, 2025 · Databases

How MySQL’s Double Write Buffer Prevents Partial Write Failures

This article explains why MySQL data pages can suffer partial write failures during crashes, how the mismatch between InnoDB and OS page sizes contributes to the problem, and how the Double Write Buffer mechanism safeguards data integrity by providing a recoverable copy of each page.

Database RecoveryDouble Write BufferInnoDB
0 likes · 7 min read
How MySQL’s Double Write Buffer Prevents Partial Write Failures
MaGe Linux Operations
MaGe Linux Operations
Jul 27, 2025 · Databases

Master MySQL Performance Tuning & Troubleshooting on Linux: A Complete Guide

This comprehensive guide walks you through why MySQL performance matters, how to benchmark and establish baselines, apply Linux system and MySQL configuration optimizations, fine‑tune SQL queries, diagnose common failures, set up robust monitoring, and implement high‑availability architectures for production environments.

Database Optimizationhigh availabilitymysql
0 likes · 18 min read
Master MySQL Performance Tuning & Troubleshooting on Linux: A Complete Guide
MaGe Linux Operations
MaGe Linux Operations
Jul 25, 2025 · Databases

Master MySQL Ops: From Config Tuning to Query Performance Boost

This comprehensive guide walks you through a real production incident and then details MySQL configuration tuning, memory and thread settings, InnoDB core parameters, index design, query optimization cases, slow‑query analysis, read‑write splitting, monitoring scripts, sharding strategies, fault diagnosis, backup and recovery best practices, and high‑availability deployment, providing actionable tips and code examples for robust database performance.

Replicationmysqlperformance tuning
0 likes · 12 min read
Master MySQL Ops: From Config Tuning to Query Performance Boost
Top Architect
Top Architect
Jul 24, 2025 · Databases

How to Efficiently Shard Billion‑Row Tables with ShardingSphere and Spring Boot

This article walks through the end‑to‑end design, configuration, and implementation of splitting massive loan and repayment tables into 50 sharded MySQL tables using ShardingSphere, Spring Boot, and a custom suffix algorithm, while covering data migration, DBA coordination, dynamic switches, and scheduled consistency checks.

Data MigrationShardingSphereSpring Boot
0 likes · 19 min read
How to Efficiently Shard Billion‑Row Tables with ShardingSphere and Spring Boot
dbaplus Community
dbaplus Community
Jul 23, 2025 · Databases

What’s New in MySQL 9.4.0? Key Features, Fixes, and Improvements

MySQL 9.4.0 introduces extensive updates including charset handling fixes, macOS compilation options, component behavior changes, new system variables, deprecations, InnoDB memory and indexing enhancements, revised installation procedures, JavaScript stored‑procedure improvements, performance‑mode tweaks, vector function fixes, numerous new features, and a long list of resolved bugs across the server, client, and replication subsystems.

Bug FixesInnoDBRelease Notes
0 likes · 26 min read
What’s New in MySQL 9.4.0? Key Features, Fixes, and Improvements
Architect
Architect
Jul 23, 2025 · Backend Development

How to Break Down Distributed Transactions for Reliable Microservices

This article explains the challenges of distributed consistency when a business operation writes to both MySQL and third‑party systems, presents a financial reimbursement case study, analyzes failure risks, and offers a practical solution that splits large transactions into small, retryable units using Spring and a task table.

Distributed TransactionsMicroservicesStrategy Pattern
0 likes · 10 min read
How to Break Down Distributed Transactions for Reliable Microservices
Architecture Digest
Architecture Digest
Jul 21, 2025 · Databases

When MySQL Auto‑Increment IDs Hit Their Limit: Diagnosis and Fixes

A massive MySQL table reached the INT auto‑increment ceiling, causing insert failures; the article details how the issue was identified, explores three remediation strategies—including converting the column to BIGINT, redesigning IDs, and sharding—shows stored‑procedure scripts, performance monitoring, and practical lessons on schema design and multithreaded batch processing.

BIGINTauto_incrementmysql
0 likes · 8 min read
When MySQL Auto‑Increment IDs Hit Their Limit: Diagnosis and Fixes
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 21, 2025 · Artificial Intelligence

Can Gemini AI Directly Query MySQL? A FastMCP Walkthrough

This article demonstrates how to set up a FastMCP server for MySQL, load the Sakila sample database, expose query tools to Gemini, experiment with different model versions and temperature settings, and observe the generated SQL queries and results, providing a practical guide for AI‑driven database access.

AI integrationGeminidatabase
0 likes · 16 min read
Can Gemini AI Directly Query MySQL? A FastMCP Walkthrough
Su San Talks Tech
Su San Talks Tech
Jul 21, 2025 · Databases

Master MySQL Table Lookups and Index Condition Pushdown

The article explains MySQL’s table lookup (回表) and index condition pushdown (索引下推), illustrating their mechanisms with sample tables, SQL statements, execution plans, performance drawbacks, and practical techniques such as covering indexes to reduce I/O and improve query efficiency.

Database OptimizationTable Lookupindex condition pushdown
0 likes · 9 min read
Master MySQL Table Lookups and Index Condition Pushdown
Top Architect
Top Architect
Jul 20, 2025 · Databases

When MySQL Auto‑Increment IDs Hit Their Limit – Diagnosis and Fixes

A senior architect investigates a missing device error caused by MySQL auto‑increment IDs reaching the 32‑bit integer limit, analyzes the overflow issue, evaluates three remediation strategies—including converting the column to BIGINT, adopting distributed IDs, or sharding the database—and shares practical code snippets and performance insights for large‑scale data migrations.

BIGINTauto_incrementdatabase migration
0 likes · 11 min read
When MySQL Auto‑Increment IDs Hit Their Limit – Diagnosis and Fixes
dbaplus Community
dbaplus Community
Jul 20, 2025 · Databases

Recovering Deleted MySQL Data Files in CDH: A Step‑by‑Step Guide

This guide walks through diagnosing a MySQL metadata loss in a CDH cluster, locking the database, locating deleted file handles, restoring shared and independent tablespace files, fixing table structures, verifying consistency, and explains the underlying Linux and MySQL mechanisms.

CDHData RecoveryDatabase Administration
0 likes · 6 min read
Recovering Deleted MySQL Data Files in CDH: A Step‑by‑Step Guide
Ops Community
Ops Community
Jul 19, 2025 · Operations

Mastering Linux Enterprise Data Synchronization: From Basics to Production Best Practices

This comprehensive guide explores Linux‑based enterprise data synchronization, covering core concepts, architecture patterns, tools like rsync, MySQL and PostgreSQL replication, distributed file systems, cloud‑native solutions, monitoring, security, and production‑grade best practices to help engineers build reliable, scalable sync systems.

EnterpriseKubernetesLinux
0 likes · 18 min read
Mastering Linux Enterprise Data Synchronization: From Basics to Production Best Practices
MaGe Linux Operations
MaGe Linux Operations
Jul 19, 2025 · Databases

Master MySQL 8.0 Performance: 20+ Proven Optimization Tips

This guide presents more than twenty practical MySQL 8.0 optimization recommendations—including hardware tuning, InnoDB configuration, index design, query rewriting, security hardening, monitoring, backup strategies, and benchmarking—to help engineers dramatically improve database throughput, latency, and stability.

Database OptimizationInnoDBmysql
0 likes · 15 min read
Master MySQL 8.0 Performance: 20+ Proven Optimization Tips
Senior Tony
Senior Tony
Jul 19, 2025 · Databases

Why Your MySQL Index Fails: 8 Common Pitfalls and How to Fix Them

This article examines eight typical situations that cause MySQL indexes to become ineffective—such as violating the leftmost‑prefix rule, leading‑wildcard LIKE patterns, OR conditions, functions, calculations, implicit type conversions, large result sets, and mismatched ORDER BY directions—providing SQL examples, execution‑plan screenshots, and practical explanations.

Index Optimizationdatabasemysql
0 likes · 11 min read
Why Your MySQL Index Fails: 8 Common Pitfalls and How to Fix Them
Top Architect
Top Architect
Jul 18, 2025 · Databases

Mastering MySQL‑Elasticsearch Synchronization: Strategies, Pros, and Implementation

This article explains why MySQL alone struggles with large‑scale, complex queries, introduces Elasticsearch as a complementary search engine, and compares five practical synchronization approaches—synchronous double‑write, asynchronous double‑write, Logstash, Binlog, and Canal/DTS—detailing their mechanisms, advantages, disadvantages, and typical use cases.

BinlogCanalDTS
0 likes · 17 min read
Mastering MySQL‑Elasticsearch Synchronization: Strategies, Pros, and Implementation
macrozheng
macrozheng
Jul 18, 2025 · Databases

MySQL vs Elasticsearch: Which Data Store Fits Your Needs?

This article compares MySQL and Elasticsearch across data models, query languages, indexing, distributed architecture, performance, scalability, and typical use cases, helping readers decide which system best fits their application requirements in modern software development.

Elasticsearchdata modelingdatabase comparison
0 likes · 12 min read
MySQL vs Elasticsearch: Which Data Store Fits Your Needs?
IT Services Circle
IT Services Circle
Jul 17, 2025 · Databases

Understanding MySQL Table Lookups and Index Condition Pushdown

This article explains the concepts of table lookups (回表) and index condition pushdown (索引下推) in MySQL, demonstrates how they work with example tables and queries, discusses their performance impact, and provides practical techniques such as covering indexes and selective column queries to minimize costly table lookups.

Database OptimizationTable Lookupindex condition pushdown
0 likes · 8 min read
Understanding MySQL Table Lookups and Index Condition Pushdown
macrozheng
macrozheng
Jul 17, 2025 · Backend Development

How We Resolved Repeated Kafka Message Backlogs in a High‑Traffic Restaurant System

This article recounts a series of Kafka message backlog incidents in a restaurant ordering system and explains how targeted optimizations—batch database queries, index tuning, data archiving, and thread‑pool scaling—eliminated the delays and restored reliable kitchen display performance.

KafkaMessage Queuebackend-development
0 likes · 12 min read
How We Resolved Repeated Kafka Message Backlogs in a High‑Traffic Restaurant System
macrozheng
macrozheng
Jul 16, 2025 · Databases

Why Auto‑Increment Beats UUID in MySQL: Performance Tests and Deep Dive

An in‑depth MySQL study compares auto‑increment, UUID, and random Snowflake keys by building three identical tables, running insert‑performance tests with Spring Boot/JdbcTemplate, and analyzing index structures, revealing why auto‑increment keys outperform UUIDs despite the latter’s uniqueness.

Spring Bootauto_incrementdatabase indexing
0 likes · 11 min read
Why Auto‑Increment Beats UUID in MySQL: Performance Tests and Deep Dive
Liangxu Linux
Liangxu Linux
Jul 15, 2025 · Databases

InnoDB vs MyISAM vs Memory: Which MySQL Storage Engine Fits Your Needs?

This article compares MySQL's three common storage engines—InnoDB, MyISAM, and Memory—by examining their core features, locking mechanisms, transaction support, durability, foreign‑key capabilities, typical use cases, and provides concrete CREATE TABLE examples and a side‑by‑side feature matrix to help developers choose the right engine.

Database PerformanceInnoDBMemory
0 likes · 7 min read
InnoDB vs MyISAM vs Memory: Which MySQL Storage Engine Fits Your Needs?
Tech Freedom Circle
Tech Freedom Circle
Jul 15, 2025 · Databases

One‑Order Four‑Split: Solving MySQL Deadlocks in Million‑Row Imports

During massive daily imports of up to one million reconciliation records, MySQL deadlocks can cripple performance; this article dissects the four classic deadlock conditions, then presents a systematic “One‑Order Four‑Split” strategy—ordered writes, transaction splitting, index management, partitioning, and gap‑lock removal—backed by benchmarks, code samples, and configuration tweaks that cut lock rates by up to 90% and reduce batch times to under ten minutes.

Batch InsertIndex OptimizationPartitioning
0 likes · 27 min read
One‑Order Four‑Split: Solving MySQL Deadlocks in Million‑Row Imports
Su San Talks Tech
Su San Talks Tech
Jul 15, 2025 · Databases

Unlock MySQL Performance: 8 Lock Types, Deadlock Solutions, and Optimization Tips

This article explains MySQL's eight lock mechanisms, their purposes and classifications, demonstrates row‑level, gap, next‑key, table and metadata locks with code examples, discusses deadlock scenarios and detection, and provides practical monitoring and optimization strategies to improve concurrency and reliability.

Database OptimizationIsolation Levelsconcurrency
0 likes · 10 min read
Unlock MySQL Performance: 8 Lock Types, Deadlock Solutions, and Optimization Tips