Tagged articles
5000 articles
Page 42 of 50
ITPUB
ITPUB
Dec 4, 2020 · Databases

Mastering MySQL Binlog, Undo Log, Redo Log, and ChangeBuffer

This comprehensive guide explains MySQL's binary log, undo log, redo log, and ChangeBuffer, covering their concepts, purposes, recording formats, flush timing, recovery processes, and how they interact during transactions and crash‑safe recovery.

BinlogChangeBufferDatabaseRecovery
0 likes · 21 min read
Mastering MySQL Binlog, Undo Log, Redo Log, and ChangeBuffer
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 4, 2020 · Databases

Effect of Floating IP (SIP) Switch on MySQL Connections and the Importance of TCP Keepalive

The article describes an experiment that shows when a floating IP (SIP) moves between MySQL servers, existing client connections experience long delays until TCP keepalive detects the failure, highlighting the need to configure shorter keepalive intervals for high‑availability database deployments.

Database ConnectivityFloating IPhigh availability
0 likes · 4 min read
Effect of Floating IP (SIP) Switch on MySQL Connections and the Importance of TCP Keepalive
Programmer DD
Programmer DD
Dec 4, 2020 · Databases

Boost MySQL Performance: 8 Common SQL Pitfalls and How to Fix Them

This article examines frequent MySQL performance problems such as inefficient LIMIT usage, implicit type conversion, sub‑query updates, mixed sorting, EXISTS clauses, condition push‑down, pre‑filtering, and intermediate result handling, and provides rewritten SQL examples that dramatically reduce execution time.

Database PerformanceQuery TuningSQL Optimization
0 likes · 14 min read
Boost MySQL Performance: 8 Common SQL Pitfalls and How to Fix Them
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Dec 3, 2020 · Databases

Essential MySQL Design & Development Standards for Reliable Databases

This guide outlines comprehensive MySQL best‑practice standards covering naming conventions, storage engine selection, charset usage, table and column comments, size limits, partitioning, hot‑cold data separation, index design, SQL coding rules, and operational safeguards to ensure performant, maintainable, and secure database systems.

Database designSQL Standardsbest practices
0 likes · 22 min read
Essential MySQL Design & Development Standards for Reliable Databases
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 2, 2020 · Databases

Design Principles and Practices for MySQL Primary Keys

This article explains MySQL primary key design principles, compares auto‑increment, UUID and uuid_short approaches, provides SQL examples and performance benchmarks, and offers guidance on choosing business‑related versus unrelated key columns for optimal data integrity and query efficiency.

auto_incrementmysqlprimary key
0 likes · 12 min read
Design Principles and Practices for MySQL Primary Keys
System Architect Go
System Architect Go
Nov 30, 2020 · Databases

Five Ways to Sync MySQL Data to Elasticsearch, Redis, MQ, etc.

This article outlines five practical methods for synchronizing MySQL data to external systems such as Elasticsearch, Redis, and message queues, covering business‑layer hooks, middleware integration, scheduled tasks using updated_at, binlog parsing with ROW format, and handling mixed or statement binlog formats, plus open‑source tools.

BinlogElasticsearchKafka
0 likes · 5 min read
Five Ways to Sync MySQL Data to Elasticsearch, Redis, MQ, etc.
ITPUB
ITPUB
Nov 30, 2020 · Databases

How to Fix Common MySQL Performance Pitfalls: Real-World SQL Optimizations

This article examines frequent MySQL performance problems such as inefficient LIMIT usage, implicit type conversion, subquery updates, mixed ordering, EXISTS clauses, predicate push‑down, early row reduction, and intermediate result set handling, providing concrete rewrites and execution‑plan comparisons that dramatically improve query speed.

Query PlanningSQL OptimizationSubqueries
0 likes · 14 min read
How to Fix Common MySQL Performance Pitfalls: Real-World SQL Optimizations
Programmer DD
Programmer DD
Nov 28, 2020 · Backend Development

Deep Dive into ShardingSphere XA Distributed Transaction Support and Atomikos Integration

This article provides a comprehensive technical analysis of ShardingSphere's XA distributed transaction capabilities, covering the CAP theory, X/Open DTP model, MySQL XA support, JTA mapping, Atomikos initialization, transaction lifecycle (begin, getConnection, commit, rollback), and the recovery mechanism with detailed code snippets and diagrams.

AtomikosDistributed TransactionsJTA
0 likes · 34 min read
Deep Dive into ShardingSphere XA Distributed Transaction Support and Atomikos Integration
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 28, 2020 · Databases

Setting Up MySQL Master‑Slave Replication and Read/Write Splitting with Spring Boot

This guide explains how to install MySQL 8.0.16 on two CentOS7 servers, configure master‑slave replication with binlog, set up read/write splitting, and integrate the setup into a Spring Boot application using dynamic‑datasource, covering all necessary commands, configuration files, and code examples.

Read/Write SplittingSpring Bootmaster-slave replication
0 likes · 14 min read
Setting Up MySQL Master‑Slave Replication and Read/Write Splitting with Spring Boot
Practical DevOps Architecture
Practical DevOps Architecture
Nov 28, 2020 · Databases

Features, Fault Detection, Limitations, and Deployment Scripts for MySQL Group Replication (MGR)

This article outlines MySQL Group Replication’s key features, fault-detection mechanism, limitations, required environment, and step-by-step deployment scripts, providing a practical guide for setting up a high-availability MySQL cluster on CentOS using the provided shell scripts and configuration files.

Group ReplicationMGRReplication
0 likes · 6 min read
Features, Fault Detection, Limitations, and Deployment Scripts for MySQL Group Replication (MGR)
JavaEdge
JavaEdge
Nov 27, 2020 · Databases

Mastering SQL Query Conditions: WHERE, BETWEEN, IN, AND/OR, NULL Checks

This guide explains how to filter data in MySQL using various query conditions such as WHERE, comparison operators, BETWEEN, IN, NULL checks, logical operators, short‑circuit evaluation, and operator precedence, with clear examples and visual illustrations.

WHEREmysqloperators
0 likes · 8 min read
Mastering SQL Query Conditions: WHERE, BETWEEN, IN, AND/OR, NULL Checks
Architecture Digest
Architecture Digest
Nov 25, 2020 · Backend Development

Design and Implementation of a Short URL Service Using Redis and MySQL

The article explains why short URLs are popular, outlines their basic workflow, and details a backend service design that uses an incremental ID generator, Redis caching, MySQL storage, batch allocation, and distributed strategies to efficiently create and manage short links.

high concurrencymysqlshort URL
0 likes · 10 min read
Design and Implementation of a Short URL Service Using Redis and MySQL
Qunar Tech Salon
Qunar Tech Salon
Nov 24, 2020 · Databases

Analysis of Galera GTID vs MySQL GTID Issues During Percona XtraDB Cluster Split at Qunar

This article examines how differences between Galera GTID and MySQL GTID caused replication interruptions during a Percona XtraDB Cluster (PXC) split at Qunar, details the migration procedure, reproduces the problem with step‑by‑step commands, explains GTID concepts, and proposes operational improvements to avoid data inconsistency.

Database operationsGTIDGalera
0 likes · 17 min read
Analysis of Galera GTID vs MySQL GTID Issues During Percona XtraDB Cluster Split at Qunar
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 24, 2020 · Databases

Comprehensive MySQL Guide: Database Operations, Table Management, Data Manipulation, Functions, Procedures, Triggers, and Permissions

This article provides an extensive overview of MySQL, covering database creation, renaming, and deletion, table creation and alteration, column and index management, data queries, inserts, updates, deletes, operator usage, view handling, functions, stored procedures, triggers, sequence generation, user management, and permission configuration, with practical examples and code snippets.

PermissionsProceduresTriggers
0 likes · 38 min read
Comprehensive MySQL Guide: Database Operations, Table Management, Data Manipulation, Functions, Procedures, Triggers, and Permissions
Senior Brother's Insights
Senior Brother's Insights
Nov 23, 2020 · Databases

Master MySQL Indexes: Types, Structures, and Optimization Strategies

This article explains the fundamental concepts and practical design of MySQL indexes, covering implementation-level index types, application-level index categories, the differences between clustered and non‑clustered indexes, B‑Tree and hash structures, covering indexes, and best‑practice strategies for optimal query performance.

B+TreeClustered IndexHash Index
0 likes · 14 min read
Master MySQL Indexes: Types, Structures, and Optimization Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 23, 2020 · Databases

Resolving MySQL 5.7 Login Issue Caused by the auth_socket Plugin and Exploring Its Use Cases

The article describes a puzzling MySQL 5.7 situation where any password works, investigates the cause as the auth_socket authentication plugin, provides exact SQL commands to fix the issue, and explains the plugin's security characteristics and appropriate deployment scenarios.

auth_socketauthentication plugindatabase troubleshooting
0 likes · 5 min read
Resolving MySQL 5.7 Login Issue Caused by the auth_socket Plugin and Exploring Its Use Cases
ITPUB
ITPUB
Nov 20, 2020 · Databases

How Indexes Supercharge MySQL Queries: A Deep Dive into EXPLAIN

This article explains why indexes dramatically improve MySQL query speed on large tables, outlines common reasons for slow SQL, shows how to use EXPLAIN and SHOW PROFILE to diagnose problems, and provides step‑by‑step examples of creating and evaluating indexes for optimal performance.

Database Performanceexplainindex
0 likes · 15 min read
How Indexes Supercharge MySQL Queries: A Deep Dive into EXPLAIN
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 20, 2020 · Databases

Optimizing a Slow MySQL 5.7 Query for Detecting Tables Without Primary or Unique Keys

This article examines why a MySQL 5.7 query that finds tables lacking primary or unique keys runs extremely slowly, demonstrates an experiment reproducing the issue, analyzes the optimizer's subquery rewrite, and shows how adding hints and materialization reduces execution time from over 16 seconds to under one second.

Information SchemaSubquerymysql
0 likes · 4 min read
Optimizing a Slow MySQL 5.7 Query for Detecting Tables Without Primary or Unique Keys
Top Architect
Top Architect
Nov 20, 2020 · Databases

Database Design and SQL Best‑Practice Guidelines

This article presents a comprehensive set of mandatory and recommended MySQL database standards—including table creation rules, SQL writing conventions, and index design practices—aimed at preventing improper schemas, reducing erroneous queries, and improving overall performance for backend development teams.

Database designSQL Guidelinesindexes
0 likes · 14 min read
Database Design and SQL Best‑Practice Guidelines
Beike Product & Technology
Beike Product & Technology
Nov 18, 2020 · Backend Development

How to Set Up a Private npm Registry with cnpmjs on Ubuntu

This guide explains how to build a private npm registry on Ubuntu using cnpmjs, covering MySQL installation, server configuration, repository setup, package publishing, and synchronization options, providing step‑by‑step commands and troubleshooting tips for a stable internal package management solution.

DeploymentPrivate RegistryUbuntu
0 likes · 10 min read
How to Set Up a Private npm Registry with cnpmjs on Ubuntu
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 18, 2020 · Databases

How to Persist Global System Variables in MySQL 8

This article explains MySQL 8's persisted system variables feature, showing how to use SET PERSIST and SET PERSIST_ONLY to make variable changes survive restarts, how to view and clear persisted settings, how to disable persistence, required privileges, and how to monitor persisted variables via performance_schema.

Database AdministrationSET PERSISTmysql
0 likes · 7 min read
How to Persist Global System Variables in MySQL 8
Architect
Architect
Nov 17, 2020 · Databases

MySQL Pagination Optimization Techniques and Performance Testing

The article examines MySQL pagination performance on a large order_history table, presenting various pagination methods—including simple LIMIT, subquery, ID range, and temporary table techniques—along with detailed test results that show how query speed varies with record count and offset.

Performance Testingdatabasemysql
0 likes · 10 min read
MySQL Pagination Optimization Techniques and Performance Testing
Top Architect
Top Architect
Nov 17, 2020 · Backend Development

Java Netty‑Based Chat Application with Swing UI and MySQL Integration

This article details the design and implementation of a Java chat system that uses Netty for server‑side networking, Swing for the client UI, and MySQL with C3P0 for data persistence, covering features such as user authentication, friend management, single‑chat messaging, and online status detection.

NettyNetworkingSwing
0 likes · 23 min read
Java Netty‑Based Chat Application with Swing UI and MySQL Integration
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 17, 2020 · Databases

How to Use CHECK Constraints in MySQL 8

This article explains MySQL 8’s newly supported CHECK constraints, outlines usage restrictions, and provides step‑by‑step examples—including simple age validation and complex gender‑age logic—showing how to create, test, alter, and drop constraints while highlighting practical considerations.

CHECK constraintMySQL8data validation
0 likes · 7 min read
How to Use CHECK Constraints in MySQL 8
Architect's Tech Stack
Architect's Tech Stack
Nov 16, 2020 · Backend Development

Integrating Dataway with Spring Boot: A Step‑by‑Step Tutorial

This tutorial walks through adding Dataway to a Spring Boot project by importing Hasor and Dataway dependencies, configuring Maven, setting Dataway and datasource properties, creating a Hasor module to inject the Spring DataSource, enabling Hasor annotations, launching the application, and finally using the Dataway UI to define and publish SQL or DataQL‑based APIs.

API ConfigurationDataQLDataway
0 likes · 12 min read
Integrating Dataway with Spring Boot: A Step‑by‑Step Tutorial
Programmer DD
Programmer DD
Nov 16, 2020 · Databases

How Do MySQL 5.7 and 8.0 Compare Under Read/Write, Read‑Only, and Write‑Only Loads?

Using sysbench, this study benchmarks MySQL 5.7.22 and MySQL 8.0.15 under read‑write, read‑only, and write‑only workloads with various sync_binlog and innodb_flush_log_at_trx_commit settings, revealing performance trends across different concurrency levels and highlighting that MySQL 5.7 often outperforms 8.0 in these tests.

Performance TestingQPSSysbench
0 likes · 11 min read
How Do MySQL 5.7 and 8.0 Compare Under Read/Write, Read‑Only, and Write‑Only Loads?
Laravel Tech Community
Laravel Tech Community
Nov 15, 2020 · Databases

MySQL Lock Types and Deadlock Causes with Practical Examples

This article explains MySQL's three lock levels—table, row, and page—describes next‑key, gap, and record locks, analyzes why deadlocks occur, and provides multiple real‑world examples and prevention strategies, including code snippets for reproducible scenarios.

InnoDBLocksconcurrency
0 likes · 12 min read
MySQL Lock Types and Deadlock Causes with Practical Examples
ITPUB
ITPUB
Nov 13, 2020 · Databases

Master MySQL Indexes: How Explain Optimizes Query Performance

This guide explains why MySQL queries become slow, how to diagnose issues with slow‑query logs, Explain and Show Profile, details the structure and types of indexes, interprets each column of the Explain output, and demonstrates practical optimization steps with real SQL examples.

Database Performanceindexesmysql
0 likes · 14 min read
Master MySQL Indexes: How Explain Optimizes Query Performance
ITPUB
ITPUB
Nov 12, 2020 · Databases

How Vivo Scaled to Billions of Records: Sharding and InnoDB Compression Strategies

This article details how Vivo's cloud service tackled explosive data growth by applying horizontal and vertical sharding, routing‑table based dynamic expansion, and MySQL InnoDB compression, providing step‑by‑step guidance, performance results, and practical recommendations for large‑scale database deployments.

InnoDBPartitioningdata compression
0 likes · 16 min read
How Vivo Scaled to Billions of Records: Sharding and InnoDB Compression Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 12, 2020 · Databases

MySQL sys Schema ERROR 1356 Bug When Using mysqldump --all-databases and How to Fix It

The article investigates the MySQL 5.7 sys schema ERROR 1356 caused by mysqldump --all-databases dropping mysql.proc, explains why the bug occurs, cites official documentation and bug reports, and provides four practical solutions including mysql_upgrade, separate sys backups, using --databases, and rebuilding from mysql‑sys.

Database BackupERROR 1356bug
0 likes · 12 min read
MySQL sys Schema ERROR 1356 Bug When Using mysqldump --all-databases and How to Fix It
Programmer DD
Programmer DD
Nov 12, 2020 · Information Security

Uncovering MySQL Exploits: From File Reads to Remote Code Execution

This article provides a comprehensive overview of common MySQL attack techniques—including client‑side arbitrary file reads, SSRF‑based data extraction, server‑side file read/write, remote code execution vulnerabilities (CVE‑2016‑6662), and authentication bypass (CVE‑2012‑2122)—and supplies practical command examples and mitigation insights.

CVEDatabase SecurityExploitation
0 likes · 14 min read
Uncovering MySQL Exploits: From File Reads to Remote Code Execution
php Courses
php Courses
Nov 10, 2020 · Backend Development

Detecting and Removing Emoji Characters in PHP Strings

This article explains how to determine whether a PHP string contains emoji characters, provides functions to detect and strip emojis using multibyte string functions, and discusses storing emoji‑containing strings in MySQL with utf8mb4 or base64 encoding.

String Manipulationmysql
0 likes · 3 min read
Detecting and Removing Emoji Characters in PHP Strings
Laravel Tech Community
Laravel Tech Community
Nov 10, 2020 · Backend Development

Implementing User Check‑In Feature: MySQL vs Redis Bitmap Approaches

This article examines common techniques for implementing a user check‑in function in web and mobile applications, comparing a straightforward MySQL table solution with a Redis bitmap approach, detailing the data structures, code examples, workflow, and the advantages and disadvantages of each method.

Bitmapbackend-developmentcheck-in
0 likes · 6 min read
Implementing User Check‑In Feature: MySQL vs Redis Bitmap Approaches
Architecture Digest
Architecture Digest
Nov 10, 2020 · Databases

MySQL Lock Types, Deadlock Causes, and Prevention Strategies

This article explains MySQL's lock levels, describes various lock algorithms, presents multiple deadlock scenarios with SQL examples, analyzes the root causes, and outlines InnoDB's deadlock prevention mechanisms and detection methods for developers dealing with concurrency issues.

InnoDBLock Typesmysql
0 likes · 15 min read
MySQL Lock Types, Deadlock Causes, and Prevention Strategies
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 10, 2020 · Databases

MySQL Transaction Concepts, Isolation Levels, MVCC, Storage Engines, Indexes, and Optimization Techniques

This article provides a comprehensive overview of MySQL fundamentals, covering transaction properties and isolation levels, MVCC mechanics, differences between InnoDB and MyISAM, query execution flow, redo and binlog, index structures, common pitfalls, and practical optimization and scaling strategies.

Isolation LevelsMVCCTransactions
0 likes · 29 min read
MySQL Transaction Concepts, Isolation Levels, MVCC, Storage Engines, Indexes, and Optimization Techniques
Efficient Ops
Efficient Ops
Nov 9, 2020 · Databases

How Lufax Achieved a Zero‑Downtime, 100% Oracle‑to‑MySQL Migration

Lufax completed a two‑year, zero‑downtime, 100% Oracle‑to‑MySQL migration across its entire financial platform, detailing the dual‑write strategy, fine‑grained batch switching, tool‑driven automation, and the resulting cost and operational benefits for over 45 million users and supporting critical transaction services.

Zero Downtimeautomationdatabase migration
0 likes · 16 min read
How Lufax Achieved a Zero‑Downtime, 100% Oracle‑to‑MySQL Migration
21CTO
21CTO
Nov 9, 2020 · Databases

How ClickHouse Turns MySQL Bottlenecks into Sub‑Second OLAP Queries

This article introduces ClickHouse, compares column‑store and row‑store databases, shows how migrating a 50‑million‑row MySQL table to ClickHouse reduced query time from minutes to under one second, and shares practical installation, migration, performance testing, and synchronization tips.

Columnar DatabaseData MigrationOLAP
0 likes · 6 min read
How ClickHouse Turns MySQL Bottlenecks into Sub‑Second OLAP Queries
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 9, 2020 · Databases

Common Causes and Troubleshooting of MySQL Startup Failures

MySQL startup failures are typically caused by either insufficient system resource access (such as file permissions or security policies) or incorrect configuration parameters, and can be diagnosed by checking permissions, security policies, and the order and content of MySQL option files.

ConfigurationLinuxdatabase
0 likes · 6 min read
Common Causes and Troubleshooting of MySQL Startup Failures
Open Source Linux
Open Source Linux
Nov 8, 2020 · Databases

Master MySQL 8.0 Installation: YUM, Binary, Multi‑Instance Setup & Common Pitfalls

This guide walks you through removing old MySQL versions, installing MySQL 8.0 via YUM or binary packages, configuring a secure initial password, setting up multiple instances on different ports, and addressing typical MySQL 8.0 pitfalls such as user creation, remote root access, authentication plugins, and character set settings.

InstallationLinuxMulti-Instance
0 likes · 21 min read
Master MySQL 8.0 Installation: YUM, Binary, Multi‑Instance Setup & Common Pitfalls
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Nov 6, 2020 · Databases

MySQL Protocol Analysis and Source Code Exploration

This article provides a detailed walkthrough of MySQL protocol analysis using Wireshark, covering SSL disabling, packet capture commands, step‑by‑step examination of handshake, authentication, database selection, query execution packets, and an in‑depth look at related source‑code functions and command enums.

Networkingdatabasemysql
0 likes · 15 min read
MySQL Protocol Analysis and Source Code Exploration
ITPUB
ITPUB
Nov 6, 2020 · Databases

Mastering NoSQL and SQL: Key Differences, MongoDB Features, and MySQL Essentials

This comprehensive guide explains what NoSQL is, contrasts non‑relational and relational databases, outlines the main representatives of each, dives deep into MongoDB architecture, features, use‑cases and limitations, and also covers MySQL fundamentals, replication, backup, and common monitoring tools like Prometheus and Zabbix.

MongoDBNoSQLPrometheus
0 likes · 33 min read
Mastering NoSQL and SQL: Key Differences, MongoDB Features, and MySQL Essentials
Architect
Architect
Nov 5, 2020 · Databases

Differences Between count(1), count(*), and count(column) in MySQL

This article explains the functional and performance differences among MySQL's count(1), count(*), and count(column) functions, illustrates how NULL handling varies, and provides a concrete example demonstrating their results and execution efficiency under different table schemas.

_countdatabasemysql
0 likes · 5 min read
Differences Between count(1), count(*), and count(column) in MySQL
ITPUB
ITPUB
Nov 5, 2020 · Databases

How ClickHouse Cut MySQL Query Time 200× – A Practical Migration Guide

This article introduces ClickHouse, compares column‑ and row‑oriented storage, explains a real‑world migration from MySQL to ClickHouse that reduced a 3‑minute query to under one second, details installation, migration methods, performance results, synchronization options, and common pitfalls.

Columnar DatabaseData MigrationOLAP
0 likes · 7 min read
How ClickHouse Cut MySQL Query Time 200× – A Practical Migration Guide
ITPUB
ITPUB
Nov 5, 2020 · Databases

Why Does MySQL 5.7 Throw Duplicate‑Key Errors After an Auto‑Increment Upgrade?

After upgrading a critical MySQL 5.6 table to 5.7, the system began reporting duplicate‑key errors on master, replica and read‑only instances due to unexpected changes in the AUTO_INCREMENT value, prompting a deep kernel investigation, bug analysis, on‑site reproduction, and practical mitigation steps.

BinlogDuplicate KeyInnoDB
0 likes · 12 min read
Why Does MySQL 5.7 Throw Duplicate‑Key Errors After an Auto‑Increment Upgrade?
ITPUB
ITPUB
Nov 5, 2020 · Databases

Inside MySQL InnoDB: My Interview Journey and Development Insights

The author recounts his 2012 MySQL interview experience, describes the global InnoDB team structure, outlines the bug‑fix and feature‑development workflow, lists key contributions such as spatial indexes and transparent encryption, and reflects on leaving Oracle for Tencent Cloud.

Database DevelopmentInnoDBTeam Structure
0 likes · 9 min read
Inside MySQL InnoDB: My Interview Journey and Development Insights
vivo Internet Technology
vivo Internet Technology
Nov 4, 2020 · Databases

Scaling Vivo Cloud Service Data Storage: Sharding, Partitioning, and InnoDB Compression Strategies

Vivo Cloud Service scaled from millions to tens of millions of users by applying four sharding strategies—horizontal table partitioning, horizontal database splitting, vertical partitioning, and dynamic routing—while enabling InnoDB compression, which halved storage size, kept CPU impact modest, and preserved ample free capacity for future growth.

Cloud ServicesInnoDBScalability
0 likes · 13 min read
Scaling Vivo Cloud Service Data Storage: Sharding, Partitioning, and InnoDB Compression Strategies
vivo Internet Technology
vivo Internet Technology
Nov 4, 2020 · Backend Development

Node-MyBatis: A JavaScript Full‑Stack Data Persistence Solution for the Wukong Activity Platform

The article describes how the Wukong Activity Platform’s data‑persistence layer uses Node.js as a BFF with MySQL, combines raw drivers, optional ORMs, and a custom lightweight Node‑MyBatis framework that offers dynamic SQL templating, built‑in injection protection, declarative transaction decorators, and automatic TypeScript type generation for full‑stack JavaScript development.

MyBatisNode.jsORM
0 likes · 28 min read
Node-MyBatis: A JavaScript Full‑Stack Data Persistence Solution for the Wukong Activity Platform
Architect's Tech Stack
Architect's Tech Stack
Nov 4, 2020 · Databases

Optimizing MySQL Insert Performance with Multithreading, Prepared Statements, Batch Inserts, and Transactions

This article explains why multithreaded inserts into a single MySQL table can be faster than single-threaded inserts, analyzes the time distribution of insertion operations, and presents techniques such as prepared statements, multi-value inserts, batch execution, and transaction batching to significantly improve insert throughput.

Batch InsertInsert OptimizationPreparedStatement
0 likes · 6 min read
Optimizing MySQL Insert Performance with Multithreading, Prepared Statements, Batch Inserts, and Transactions
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 4, 2020 · Databases

Differences Between SELECT and UPDATE Execution in MySQL: Process, Optimizer, Redo Log and Binlog

The article explains how MySQL processes SELECT and UPDATE statements, detailing each execution stage—from client authentication and cache lookup to parsing, optimization, and execution—while highlighting the additional redo log and binlog handling required for UPDATE operations and offering practical code examples.

BinlogDatabase OptimizationSQL Execution
0 likes · 14 min read
Differences Between SELECT and UPDATE Execution in MySQL: Process, Optimizer, Redo Log and Binlog
ITPUB
ITPUB
Nov 3, 2020 · Databases

My MySQL InnoDB Journey: From Interview to Six Years of Core Development

The author recounts his 2012 MySQL interview experience, describes the flat, globally distributed InnoDB team structure, details the typical bug‑fix workflow, lists major InnoDB features he contributed to, and reflects on the lessons learned before moving to Tencent Cloud's database division.

Database DevelopmentInnoDBinterview experience
0 likes · 11 min read
My MySQL InnoDB Journey: From Interview to Six Years of Core Development
ITPUB
ITPUB
Nov 3, 2020 · Databases

How Indexes Supercharge MySQL Queries: A Deep Dive into EXPLAIN

This article explains why MySQL indexes dramatically improve query speed, outlines common reasons for slow SQL, shows how to use EXPLAIN to analyze execution plans, and provides step‑by‑step optimization examples with code and visual illustrations.

explainindexmysql
0 likes · 14 min read
How Indexes Supercharge MySQL Queries: A Deep Dive into EXPLAIN
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 3, 2020 · Databases

Using GTID for Multi‑Source Replication in MySQL

This article explains why GTID‑based replication is preferred for synchronizing data from four regional factories to an IDC, and provides a step‑by‑step guide—including data export, GTID configuration, master‑slave channel setup, adding a new slave, and important precautions—for successful multi‑source MySQL replication.

BackupGTIDMulti-Source Replication
0 likes · 8 min read
Using GTID for Multi‑Source Replication in MySQL
Programmer DD
Programmer DD
Nov 3, 2020 · Databases

Why Using Indexes Doesn’t Guarantee Fast Queries – MySQL Index Deep Dive

This article explains why a MySQL query that uses an index can still become a slow query, explores the difference between index usage and execution time, and presents practical optimization techniques such as improving selectivity, reducing back‑table lookups, using index condition push‑down, and leveraging virtual columns.

Virtual Columnsdatabaseindexes
0 likes · 13 min read
Why Using Indexes Doesn’t Guarantee Fast Queries – MySQL Index Deep Dive
Fulu Network R&D Team
Fulu Network R&D Team
Nov 2, 2020 · Databases

Optimizing Large MySQL Tables on Alibaba Cloud: Design, Indexing, PolarDB Migration, X‑Engine Partitioning, and Parallel Query

This article details how to improve performance of massive MySQL tables on Alibaba Cloud by redesigning schemas and indexes, migrating to PolarDB with read‑write separation, partitioning historical data using the X‑Engine storage engine, and leveraging PolarDB's parallel query capabilities for faster analytics.

Database OptimizationParallel QueryPartitioning
0 likes · 12 min read
Optimizing Large MySQL Tables on Alibaba Cloud: Design, Indexing, PolarDB Migration, X‑Engine Partitioning, and Parallel Query
Liangxu Linux
Liangxu Linux
Nov 1, 2020 · Databases

100 MySQL Interview Q&A: Indexes, Transactions, and Schema Design Essentials

This article compiles 100 common MySQL interview questions covering index structures, hash vs B‑tree trade‑offs, clustering, transaction isolation levels, lock types, primary key choices, storage engines, data types, binlog formats, pagination strategies, and best practices for schema design and query optimization.

Storage EngineTransactionsindexes
0 likes · 21 min read
100 MySQL Interview Q&A: Indexes, Transactions, and Schema Design Essentials
Su San Talks Tech
Su San Talks Tech
Nov 1, 2020 · Databases

Common MySQL Pitfalls and How to Avoid Them

This article examines common MySQL pitfalls—including signed vs. unsigned integers, auto‑increment key requirements, varchar length versus byte count, case‑insensitive collations, and storing emoji characters—providing concrete SQL examples, error screenshots, and configuration tips to help developers avoid unexpected errors.

Database designauto_incrementcollation
0 likes · 9 min read
Common MySQL Pitfalls and How to Avoid Them
Open Source Tech Hub
Open Source Tech Hub
Oct 31, 2020 · Databases

Why MySQL Indexes Matter: From B‑Tree to Covering Indexes Explained

This article explains how MySQL indexes work, comparing binary search trees, red‑black trees, hash tables, B‑trees, B+‑trees, and the differences between MyISAM and InnoDB implementations, and it details primary, secondary, covering, and composite index usage with practical examples.

B+TreeComposite IndexInnoDB
0 likes · 10 min read
Why MySQL Indexes Matter: From B‑Tree to Covering Indexes Explained
MaGe Linux Operations
MaGe Linux Operations
Oct 31, 2020 · Databases

Boost MySQL Insert Speed: 4 Proven Techniques Tested

This article explores four practical methods—batch inserts, transaction wrapping, ordered primary‑key insertion, and their combined use—to dramatically improve MySQL InnoDB insert performance, presents test results across various data volumes, and offers key configuration cautions.

Batch InsertIndex MaintenanceInsert Optimization
0 likes · 6 min read
Boost MySQL Insert Speed: 4 Proven Techniques Tested
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 30, 2020 · Databases

Configuring MySQL MGR with Asynchronous Replication Automatic Failover for Multi‑Site Disaster Recovery

This article explains how MySQL Group Replication (MGR) can provide zero‑RPO high‑availability within a city‑scale data center, why it needs asynchronous replication for WAN‑scale disaster recovery, and walks through a step‑by‑step setup—including code examples—for automatic failover of asynchronous replication channels.

Asynchronous ReplicationMGRdatabase high availability
0 likes · 6 min read
Configuring MySQL MGR with Asynchronous Replication Automatic Failover for Multi‑Site Disaster Recovery
Architecture Digest
Architecture Digest
Oct 30, 2020 · Databases

Understanding Multiversion Concurrency Control (MVCC) in InnoDB

This article explains the concept of Multiversion Concurrency Control (MVCC), how it solves read‑write blocking, deadlocks and consistency issues, and details InnoDB’s implementation—including transaction IDs, hidden columns, undo logs, and the behavior of snapshot and current reads under various isolation levels.

Concurrency ControlInnoDBMVCC
0 likes · 9 min read
Understanding Multiversion Concurrency Control (MVCC) in InnoDB
Java Captain
Java Captain
Oct 29, 2020 · Databases

MySQL Single‑Table Optimization, Partitioning, Sharding and Scaling Strategies

When a MySQL table grows large, CRUD performance degrades, so this article presents comprehensive optimization techniques—including field design, indexing, query rewriting, engine selection, system parameters, hardware upgrades, read‑write separation, caching, partitioning, vertical and horizontal splitting, sharding architectures, and recommendations for compatible scalable databases—to help maintain high performance and scalability.

Database OptimizationPartitioningmysql
0 likes · 26 min read
MySQL Single‑Table Optimization, Partitioning, Sharding and Scaling Strategies
Laravel Tech Community
Laravel Tech Community
Oct 28, 2020 · Databases

Common MySQL Query Performance Pitfalls and Their Optimizations

This article examines frequent MySQL performance problems such as inefficient LIMIT usage, implicit type conversion, sub‑query updates, mixed ordering, EXISTS clauses, condition push‑down, early limiting, intermediate result push‑down, and demonstrates how rewriting queries with proper indexes, JOINs, UNION, and WITH statements can dramatically reduce execution time.

SQL Optimizationdatabaseindexes
0 likes · 12 min read
Common MySQL Query Performance Pitfalls and Their Optimizations
ITPUB
ITPUB
Oct 28, 2020 · Databases

Top MySQL Interview Questions: Data Types, Indexes, Joins, and Performance Tuning

This article compiles essential MySQL interview questions covering data types, storage engines, locks, transactions, triggers, index creation and usage, join types, and practical SQL optimization techniques with concrete examples and code snippets for developers to master database fundamentals.

indexesinterviewmysql
0 likes · 35 min read
Top MySQL Interview Questions: Data Types, Indexes, Joins, and Performance Tuning
Programmer DD
Programmer DD
Oct 28, 2020 · Databases

Master MySQL Performance: Essential Database Optimization Techniques

This guide explains how to identify bottlenecks and boost MySQL performance through both soft (query, index, schema) and hard (hardware, configuration, sharding, caching) optimizations, offering practical commands, best‑practice tips, and visual illustrations for each step.

Database Optimizationindexesmysql
0 likes · 9 min read
Master MySQL Performance: Essential Database Optimization Techniques
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 27, 2020 · Databases

Understanding MySQL Binlog Structure and Using Python to Perform Flashback, Detect Large Transactions, and Split Binlog Files

This article explains the structure of MySQL ROW‑mode binlogs, demonstrates how to modify binlog events with Python to recover deleted rows, locate oversized transactions, and split large transactions into smaller ones, providing practical scripts and examples for advanced database manipulation.

Data RecoveryFlashbackPython
0 likes · 14 min read
Understanding MySQL Binlog Structure and Using Python to Perform Flashback, Detect Large Transactions, and Split Binlog Files
Programmer DD
Programmer DD
Oct 27, 2020 · Databases

How to Find and Delete Duplicate Records in MySQL Efficiently

This article explains how to identify duplicate rows in a MySQL table using GROUP BY and HAVING, shows several SELECT queries to list duplicates, and provides multiple DELETE strategies—including sub‑queries and multi‑column handling—to safely remove excess records while keeping one copy.

DELETEGROUP BYduplicate records
0 likes · 9 min read
How to Find and Delete Duplicate Records in MySQL Efficiently
Tencent Cloud Developer
Tencent Cloud Developer
Oct 26, 2020 · Databases

Database Auditing: Concepts, Methods, and TXSQL Implementation

Database auditing records user actions to detect illegal operations, with approaches ranging from application‑layer and transport‑layer monitoring to kernel‑level and plugin solutions; TXSQL’s MySQL‑compatible audit plugin offers both synchronous and asynchronous modes, delivering flexible rule configuration and only 3‑6 % performance overhead, making it a low‑impact, feature‑rich choice for compliance and forensics.

Audit ArchitectureDatabase AuditingTXSQL
0 likes · 12 min read
Database Auditing: Concepts, Methods, and TXSQL Implementation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 26, 2020 · Databases

Understanding MySQL Binlog, Undo Log, Redo Log, and Change Buffer

This article provides a comprehensive overview of MySQL’s logging mechanisms—including Binlog, Undo log, Redo log, and Change Buffer—explaining their concepts, roles in replication and crash‑recovery, recording formats, flush timing, two‑phase commit, checkpoint handling, and how they interact during data modifications.

BinlogChange BufferDatabase Internals
0 likes · 22 min read
Understanding MySQL Binlog, Undo Log, Redo Log, and Change Buffer