Tagged articles
5000 articles
Page 35 of 50
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 29, 2021 · Databases

Using MySQL 8.0 JSON Schema Validation Functions

This article explains how MySQL 8.0 introduces strict JSON schema validation, demonstrates the json_schema_valid and json_schema_validation_report functions with array and object examples, and shows how to enforce schema checks in tables using CHECK constraints.

JSON Schemadatabasejson_schema_valid
0 likes · 11 min read
Using MySQL 8.0 JSON Schema Validation Functions
Java Interview Crash Guide
Java Interview Crash Guide
Sep 28, 2021 · Backend Development

What I Learned from 20 Java Interviews: High‑Frequency Questions and Real Experiences

The author, a senior Java developer with ten years of experience, documents a ten‑day interview marathon across 20 companies, summarizing interview processes, outcomes, and the most frequently asked technical questions on Java fundamentals, Spring, MySQL, Redis, MQ, and micro‑service architecture to help fellow developers prepare effectively.

interviewjavamysql
0 likes · 18 min read
What I Learned from 20 Java Interviews: High‑Frequency Questions and Real Experiences
dbaplus Community
dbaplus Community
Sep 26, 2021 · Databases

Why MySQL Auto‑Increment Can Leak Data and How Distributed IDs Offer a Safer Alternative

The article examines the 2012 GitHub data‑leak caused by MySQL master‑slave failover and auto_increment misuse, explains why developers' expectations of uniqueness, monotonicity and continuity are unrealistic, and proposes half‑sync replication and distributed ID algorithms like Snowflake as more reliable solutions.

Data ConsistencyDatabase Replicationauto_increment
0 likes · 9 min read
Why MySQL Auto‑Increment Can Leak Data and How Distributed IDs Offer a Safer Alternative
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 26, 2021 · Databases

Why MySQL Optimizer Chooses Full Table Scan Over Index Scan: Cost Analysis and Experiment

This article explains how MySQL's cost‑based optimizer decides between using an index and performing a full table scan, demonstrates the behavior with a large test table, shows optimizer trace details, and clarifies why index access can sometimes be more expensive than scanning the whole table.

Full Table Scancost‑based optimizerindex
0 likes · 8 min read
Why MySQL Optimizer Chooses Full Table Scan Over Index Scan: Cost Analysis and Experiment
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 26, 2021 · Databases

MySQL Index Optimization: Principles, Types, and Practical Case Studies

This article explains MySQL index fundamentals, different index structures, the concept of covering indexes and the left‑most prefix rule, and presents three real‑world optimization cases that illustrate how to design effective composite and partial indexes to avoid table scans and improve query performance.

Database designIndex Optimizationmysql
0 likes · 14 min read
MySQL Index Optimization: Principles, Types, and Practical Case Studies
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 26, 2021 · Databases

Why MySQL Optimizer Chooses a Full Table Scan for ORDER BY id ASC LIMIT 1 and How to Force the Correct Index

The article analyzes a MySQL optimizer bug where a query with ORDER BY id ASC LIMIT 1 triggers a full‑table scan despite an applicable idx_uid_stat index, explains the cost‑based decision process, and presents two practical work‑arounds—using FORCE INDEX or a harmless arithmetic expression—to ensure the index is used.

Full Table Scanmysqloptimizer
0 likes · 7 min read
Why MySQL Optimizer Chooses a Full Table Scan for ORDER BY id ASC LIMIT 1 and How to Force the Correct Index
Top Architect
Top Architect
Sep 25, 2021 · Backend Development

Hospital Registration System Using Java Spring MVC, MyBatis, and MySQL

This article provides a step‑by‑step tutorial for building a hospital registration web application with Java, Spring MVC, MyBatis, JSP pages, and MySQL, covering environment setup, database schema, DAO interfaces, service implementation, controller logic, and front‑end pages.

JSPMyBatisSpring MVC
0 likes · 18 min read
Hospital Registration System Using Java Spring MVC, MyBatis, and MySQL
ZhiKe AI
ZhiKe AI
Sep 24, 2021 · Databases

How to Manually Re‑Add a Detached MySQL MGR Cluster Node

This guide walks through exporting business databases, re‑initializing the MySQL instance, importing data, extracting GTID information, creating replication and monitoring accounts with helper functions, resetting logs, and finally re‑joining the node to a MySQL Group Replication cluster.

Database RecoveryGTIDGroup Replication
0 likes · 8 min read
How to Manually Re‑Add a Detached MySQL MGR Cluster Node
Laravel Tech Community
Laravel Tech Community
Sep 23, 2021 · Databases

Common MySQL Commands and Basic Database/Table Operations

This article presents a concise guide to the most frequently used MySQL commands, covering how to list databases and tables, create and drop databases and tables, and perform essential CRUD operations such as inserting, querying, updating, and deleting records.

CRUDTable OperationsTutorial
0 likes · 5 min read
Common MySQL Commands and Basic Database/Table Operations
NiuNiu MaTe
NiuNiu MaTe
Sep 23, 2021 · Databases

Essential MySQL Interview Guide: Core Concepts, Queries, and Best Practices

This article walks through essential MySQL interview topics, covering basic concepts, OLTP vs OLAP, normalization forms, DML/DDL/DCL, varchar vs char trade‑offs, storage engines, ACID properties, primary and foreign keys, and how to monitor running queries, all presented from an interviewer's perspective.

ACIDDatabase InterviewSQL Basics
0 likes · 8 min read
Essential MySQL Interview Guide: Core Concepts, Queries, and Best Practices
Top Architect
Top Architect
Sep 21, 2021 · Databases

Understanding MySQL LIMIT OFFSET Performance and Buffer‑Pool Impact

The article demonstrates how a large OFFSET in a MySQL LIMIT query forces MySQL to scan millions of index rows and data pages, causing severe slowdown, and shows that rewriting the query with an inner‑join sub‑select dramatically reduces I/O and buffer‑pool usage, confirming the performance difference through experiments.

InnoDBLIMITOFFSET
0 likes · 8 min read
Understanding MySQL LIMIT OFFSET Performance and Buffer‑Pool Impact
Top Architect
Top Architect
Sep 19, 2021 · Databases

Why Store IPv4 Addresses as UNSIGNED INT in MySQL Instead of VARCHAR

The article explains that using a 32‑bit UNSIGNED INT to store IPv4 addresses in MySQL saves space, improves index and range‑query performance, and provides built‑in conversion functions, while also noting readability drawbacks and offering Java utilities for manual conversion.

INET_ATONIP address storageUNSIGNED INT
0 likes · 6 min read
Why Store IPv4 Addresses as UNSIGNED INT in MySQL Instead of VARCHAR
Java Backend Technology
Java Backend Technology
Sep 19, 2021 · Databases

How Facebook Overcame the Challenges of Migrating MySQL 5.6 to 8.0

Facebook’s engineering team detailed the multi‑year effort to upgrade a heavily customized MySQL 5.6 deployment to MySQL 8.0, describing the migration strategy, code‑patch classification, row‑based replication adoption, extensive automation testing, and the performance and compatibility issues they resolved along the way.

8.0FacebookMyRocks
0 likes · 16 min read
How Facebook Overcame the Challenges of Migrating MySQL 5.6 to 8.0
Java Architect Essentials
Java Architect Essentials
Sep 17, 2021 · Backend Development

How to Achieve Exactly‑Once Message Processing in RocketMQ Without Transactions

This article analyzes the at‑least‑once guarantee of message middleware, explains why duplicate deliveries occur, compares simple database‑based deduplication methods, explores concurrency challenges, and presents a non‑transactional, status‑driven idempotence solution using MySQL or Redis with practical code examples and limitations.

Distributed SystemsExactly-OnceIdempotence
0 likes · 19 min read
How to Achieve Exactly‑Once Message Processing in RocketMQ Without Transactions
Wukong Talks Architecture
Wukong Talks Architecture
Sep 17, 2021 · Databases

Understanding MySQL MVCC Mechanism and ReadView

This article explains MySQL's MVCC mechanism, detailing how multi-version concurrency control, undo logs, and ReadView work together to implement isolation levels, prevent dirty reads, non-repeatable reads, and phantom reads, and compares the behavior of Read Committed and Repeatable Read.

Isolation LevelsMVCCReadView
0 likes · 9 min read
Understanding MySQL MVCC Mechanism and ReadView
macrozheng
macrozheng
Sep 17, 2021 · Databases

Understanding MySQL Binlog, Redo Log, and Undo Log: How They Ensure Data Consistency

This article explains MySQL’s essential logging mechanisms—binary log, redo log, and undo log—detailing their structures, purposes, configuration parameters, and how they work together to support replication, crash recovery, and transaction durability while balancing performance and consistency.

BinlogDatabase Loggingmysql
0 likes · 10 min read
Understanding MySQL Binlog, Redo Log, and Undo Log: How They Ensure Data Consistency
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 17, 2021 · Databases

How MySQL 8.0 Optimizer Transforms Complex Subqueries and Joins

This article explains MySQL 8.0’s optimizer architecture and walks through the detailed transformation steps for subqueries, scalar‑to‑derived conversions, flattening, join simplification, partition pruning, and condition push‑down, illustrating each phase with code examples and execution‑plan screenshots.

Derived TablesJOINSubquery
0 likes · 25 min read
How MySQL 8.0 Optimizer Transforms Complex Subqueries and Joins
Qunar Tech Salon
Qunar Tech Salon
Sep 16, 2021 · Databases

Design and Implementation of a MySQL Slow‑Query Risk Scoring Model

This article presents a comprehensive approach to quantifying MySQL slow‑query risk by defining scoring items, establishing boundary values, applying various scoring functions, and integrating business‑level weighting, ultimately enabling proactive identification and remediation of high‑impact slow queries.

Database PerformanceGomysql
0 likes · 16 min read
Design and Implementation of a MySQL Slow‑Query Risk Scoring Model
Open Source Linux
Open Source Linux
Sep 15, 2021 · Fundamentals

How DMA and Zero‑Copy Boost Linux I/O Performance

This article explains how DMA and zero‑copy techniques reduce the four memory copies and context switches typical of Linux I/O, detailing their mechanisms, implementations such as sendfile, mmap and Direct I/O, and real‑world usage in Kafka and MySQL to boost performance.

DMAI/O optimizationKafka
0 likes · 18 min read
How DMA and Zero‑Copy Boost Linux I/O Performance
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 15, 2021 · Databases

Vertical Partitioning in MySQL: Database, Schema, and Table Level Splitting

The article explains MySQL vertical partitioning techniques—including instance‑level database splitting, schema‑level splitting, and column‑level table splitting—detailing their advantages, drawbacks, and step‑by‑step command‑line procedures with code examples for implementing each method in production environments.

Vertical Partitioningdatabase shardingmysql
0 likes · 12 min read
Vertical Partitioning in MySQL: Database, Schema, and Table Level Splitting
Tencent Database Technology
Tencent Database Technology
Sep 14, 2021 · Databases

Writeset‑Based Replication in MySQL: Background, Principles, Source‑Code Analysis, Testing, and Summary

This article explains how MySQL’s logical‑clock replication can be enhanced with writeset‑based dependency tracking, detailing the underlying theory, code implementation, configuration options, performance testing, and practical considerations for improving parallel applier concurrency.

BinlogReplicationTransaction Dependency
0 likes · 12 min read
Writeset‑Based Replication in MySQL: Background, Principles, Source‑Code Analysis, Testing, and Summary
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 14, 2021 · Databases

Testing MySQL open_files_limit: Which Configuration Takes Effect – my.cnf, systemd Service, or Docker Limits

This article presents a systematic investigation of MySQL's open_files_limit setting across three scenarios—conflict between my.cnf and systemd service, effectiveness when using mysqld_safe, and the impact of Docker's own limits—revealing which source actually controls the maximum number of open files.

Systemdcgroupmysql
0 likes · 10 min read
Testing MySQL open_files_limit: Which Configuration Takes Effect – my.cnf, systemd Service, or Docker Limits
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 14, 2021 · Databases

Common MySQL Interview Questions and Answers

This article provides a comprehensive collection of typical MySQL interview questions covering storage engines, lock types, gap locks, deadlock avoidance, isolation levels, index types, covering indexes, left‑most prefix rule, replication, distributed transactions, optimization techniques, sharding challenges and solutions, and global unique ID generation.

LocksReplicationdatabase
0 likes · 15 min read
Common MySQL Interview Questions and Answers
Top Architect
Top Architect
Sep 12, 2021 · Backend Development

Implementing Distributed Transactions with RabbitMQ and Spring Boot

This article explains how to use RabbitMQ as a message middleware in a Spring Boot application to achieve distributed transactions between order and dispatch services, detailing environment setup, configuration, code implementation, testing, and verification of data consistency across systems.

Message QueueRabbitMQSpring Boot
0 likes · 11 min read
Implementing Distributed Transactions with RabbitMQ and Spring Boot
Liangxu Linux
Liangxu Linux
Sep 11, 2021 · Fundamentals

How DMA and Zero‑Copy Transform Linux I/O Performance

This article explains the costly four‑copy, four‑context‑switch data path in traditional Linux I/O, introduces DMA as a co‑processor that offloads memory transfers, describes zero‑copy techniques such as sendfile, mmap and Direct I/O, and shows how Kafka and MySQL leverage these methods to reduce CPU overhead and improve throughput.

DMADirect I/OKafka
0 likes · 16 min read
How DMA and Zero‑Copy Transform Linux I/O Performance
Laravel Tech Community
Laravel Tech Community
Sep 10, 2021 · Databases

How to Remove Duplicate Records in MySQL Tables

This article explains why duplicate rows appeared in production MySQL tables, demonstrates how to identify them with SELECT queries, and provides two SQL solutions—one to delete all duplicates and another to keep a single record per duplicated key—while preserving data integrity.

data deduplicationdatabase cleanupduplicate removal
0 likes · 5 min read
How to Remove Duplicate Records in MySQL Tables
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 10, 2021 · Databases

Understanding MySQL 8.0 Derived Condition Pushdown Optimization and Its Impact on User Variables

The article explains MySQL 8.0.22's new optimizer_switch variable derived_condition_pushdown, shows how enabling it can cause unexpected results with user‑defined variables in outer WHERE clauses, provides test cases, explains the underlying behavior, and offers three practical solutions.

derived_condition_pushdownmysqloptimizer
0 likes · 7 min read
Understanding MySQL 8.0 Derived Condition Pushdown Optimization and Its Impact on User Variables
Top Architect
Top Architect
Sep 10, 2021 · Databases

Optimizing MySQL LIMIT Queries by Reducing Unnecessary Row Scans

This article explains why using a large OFFSET with MySQL LIMIT can cause severe performance degradation, demonstrates the problem with a real‑world 9.5 million‑row table, and shows how rewriting the query with a sub‑query that selects only primary keys can cut execution time from seconds to milliseconds.

InnoDBLIMITSQL Optimization
0 likes · 8 min read
Optimizing MySQL LIMIT Queries by Reducing Unnecessary Row Scans
JavaEdge
JavaEdge
Sep 10, 2021 · Databases

MySQL Lock Types Explained: Row, Gap, Metadata and Deadlock Prevention

This article examines MySQL’s locking mechanisms—including shared and exclusive row locks, gap and next‑key locks, table‑level and metadata locks—detailing how different SQL statements and index types affect lock acquisition, illustrating lock behavior with examples, and offering practical strategies to avoid deadlocks.

InnoDBLocksdeadlock
0 likes · 15 min read
MySQL Lock Types Explained: Row, Gap, Metadata and Deadlock Prevention
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 10, 2021 · Databases

Inside MySQL 8.0 Optimizer: From SQL String to Execution Plan

This article walks through MySQL 8.0’s SQL optimizer, explaining how a raw SQL statement is parsed, transformed, and optimized through stages such as Setup, Resolve, Derived‑table merging, materialization, window‑function handling, and ROLLUP processing, illustrated with diagrams and code examples.

Query ExecutionRollupSQL Optimizer
0 likes · 20 min read
Inside MySQL 8.0 Optimizer: From SQL String to Execution Plan
Wukong Talks Architecture
Wukong Talks Architecture
Sep 9, 2021 · Databases

Comprehensive MySQL Interview Questions and Answers on Indexes, Transactions, Replication, and More

This article compiles twenty detailed MySQL interview questions covering redo log vs. binlog, index types and best practices, covering indexes, joint index matching rules, back‑table queries, left‑most prefix principle, lock mechanisms, MVCC, execution plans, master‑slave replication, XA transactions, and the Snowflake ID algorithm, providing clear explanations and example SQL code.

MVCCReplicationTransactions
0 likes · 30 min read
Comprehensive MySQL Interview Questions and Answers on Indexes, Transactions, Replication, and More
Tencent Qidian Tech Team
Tencent Qidian Tech Team
Sep 9, 2021 · Databases

How MySync Achieves Real-Time MySQL Binlog Synchronization Across Heterogeneous Stores

This article explains the design and implementation of MySync, a component that leverages MySQL binlog to synchronously replicate data to heterogeneous storage systems such as Redis, ElasticSearch, and HBase, detailing its architecture, reader and writer modules, Kafka integration, and strategies for handling master‑slave failover.

BinlogDistributed SystemsReal-Time
0 likes · 15 min read
How MySync Achieves Real-Time MySQL Binlog Synchronization Across Heterogeneous Stores
Qunar Tech Salon
Qunar Tech Salon
Sep 9, 2021 · Databases

InnoDB Startup Hang Analysis: Truncate, Flush Sync, and Debugging Strategies

An in-depth investigation of a MySQL InnoDB startup deadlock caused by truncate operations and the innodb_flush_sync parameter, detailing log observations, stack traces, source code examination, and three practical solutions including GDB intervention, parameter adjustment, and data directory cleanup.

InnoDBTRUNCATEdebugging
0 likes · 15 min read
InnoDB Startup Hang Analysis: Truncate, Flush Sync, and Debugging Strategies
Tencent Database Technology
Tencent Database Technology
Sep 8, 2021 · Databases

Tencent Cloud Enterprise MySQL Dynamic Thread‑Pool Feature Overview

The article explains Tencent Cloud's enterprise‑level MySQL dynamic thread‑pool capability, describing the one‑thread‑per‑connection and thread‑pool modes, the new thread_handling_switch_mode parameter with its four options, status‑monitoring commands, and added columns for process‑list visibility, enabling seamless mode switching without server restarts.

Database PerformanceDynamic SwitchingTencent Cloud
0 likes · 6 min read
Tencent Cloud Enterprise MySQL Dynamic Thread‑Pool Feature Overview
YunZhu Net Technology Team
YunZhu Net Technology Team
Sep 8, 2021 · Backend Development

Design and Performance Evaluation of a Scalable Like System

This article analyzes common like‑system business scenarios, derives functional requirements, proposes three architectural solutions (Redis‑based priority queue, relational database, and a hybrid cache‑MQ‑DB design), presents detailed implementation code, and evaluates each approach with extensive performance tests to guide practical backend design choices.

Backend ArchitectureKafkaLike System
0 likes · 18 min read
Design and Performance Evaluation of a Scalable Like System
Architecture Digest
Architecture Digest
Sep 8, 2021 · Databases

Why Optimize Slow SQL and Practical MySQL Performance Tuning Techniques

This article explains the impact of slow SQL on database resources and user experience, outlines priority rules for addressing slow queries, details MySQL execution steps, identifies key performance factors, and provides concrete optimization methods including enabling slow‑query logs, indexing, I/O merging, and distributed architecture.

Database Optimizationmysqlperformance
0 likes · 17 min read
Why Optimize Slow SQL and Practical MySQL Performance Tuning Techniques
Laravel Tech Community
Laravel Tech Community
Sep 7, 2021 · Databases

Handling Backslashes in MySQL INSERT and SELECT Statements

This article explains how MySQL treats backslashes as escape characters in INSERT and SELECT queries, demonstrates the effect of different numbers of backslashes through practical tests, and clarifies the double‑escaping required when using LIKE patterns.

Insertbackslashdatabase
0 likes · 6 min read
Handling Backslashes in MySQL INSERT and SELECT Statements
Qunar Tech Salon
Qunar Tech Salon
Sep 6, 2021 · Databases

Comparison of Sequence Usage Across Oracle, PostgreSQL, and MySQL

This article examines how Oracle, PostgreSQL, and MySQL implement and use database sequences for primary keys, covering explicit calls, trigger‑based, DEFAULT, and AUTO_INCREMENT methods, version support, and the effects of INSERT, UPDATE, DELETE, and TRUNCATE operations, concluding with a comparative summary.

OracleSequencemysql
0 likes · 30 min read
Comparison of Sequence Usage Across Oracle, PostgreSQL, and MySQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 3, 2021 · Databases

Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring

This tutorial demonstrates how to reproduce a MySQL memory‑spike bug, monitor the process with Linux perf to capture mmap system calls, and analyze the resulting perf.out to identify which SQL statements trigger large memory allocations, while also discussing the method’s limitations.

Database PerformanceLinuxmemory profiling
0 likes · 5 min read
Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring
Top Architect
Top Architect
Sep 3, 2021 · Databases

Why MySQL’s “utf8” Is Not Real UTF‑8 and You Should Switch to utf8mb4

The article explains that MySQL’s legacy “utf8” charset only supports three‑byte characters, causing errors when storing true four‑byte UTF‑8 symbols, and shows how the newer “utf8mb4” charset provides full Unicode support, with historical context and migration guidance.

Character SetMariaDBencoding
0 likes · 7 min read
Why MySQL’s “utf8” Is Not Real UTF‑8 and You Should Switch to utf8mb4
Selected Java Interview Questions
Selected Java Interview Questions
Sep 2, 2021 · Backend Development

Implementing Distributed Transactions with RabbitMQ in a Spring Boot Application

This tutorial demonstrates how to set up a CentOS 7.5 environment, install RabbitMQ, and use Spring Boot to create a distributed transaction system that ensures data consistency across order and dispatch services by leveraging RabbitMQ's confirm and ACK mechanisms, complete with database schema, configuration, and code examples.

Message QueueRabbitMQSpring Boot
0 likes · 12 min read
Implementing Distributed Transactions with RabbitMQ in a Spring Boot Application
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 2, 2021 · Databases

Understanding and Calculating QPS and TPS in MySQL

This article explains the definitions of QPS (queries per second) and TPS (transactions per second) in MySQL, compares the various calculation methods—including Queries‑per‑second, Questions‑per‑second, and GTID‑based approaches—and recommends the most reliable ways to measure database load and transaction throughput.

GTIDQPSTPS
0 likes · 13 min read
Understanding and Calculating QPS and TPS in MySQL
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 2, 2021 · Databases

From LAMP to Cloud‑Native: Evolving Application Data Architecture and Best Practices

This article traces two decades of application data architecture evolution, comparing traditional single‑system LAMP designs with modern multi‑component cloud‑native stacks, and offers practical guidance on scaling, component selection, CDC‑based data derivation, and cloud‑native implementations such as Tablestore.

CDCData Architecturedatabases
0 likes · 22 min read
From LAMP to Cloud‑Native: Evolving Application Data Architecture and Best Practices
Wukong Talks Architecture
Wukong Talks Architecture
Sep 1, 2021 · Databases

Understanding MySQL EXPLAIN Output: Columns and Their Meaning

This article explains the purpose and interpretation of each column in MySQL's EXPLAIN output, covering identifiers, select types, table sources, partition info, access types, possible keys, actual keys, key lengths, row estimates, filtering percentages, and extra execution details, with visual examples and code snippets.

Query Executionexplainindexes
0 likes · 10 min read
Understanding MySQL EXPLAIN Output: Columns and Their Meaning
macrozheng
macrozheng
Sep 1, 2021 · Backend Development

How to Quickly Bootstrap a Full‑Stack Project with sa‑plus Code Generator

This guide introduces the sa‑plus framework—a SpringBoot‑based rapid‑development scaffold with an integrated code generator that can automatically produce backend, frontend, and API documentation code from database tables, and walks through its architecture, technology stack, module structure, quick start steps, and code‑generation features.

SpringBootVuefull-stack
0 likes · 11 min read
How to Quickly Bootstrap a Full‑Stack Project with sa‑plus Code Generator
JavaEdge
JavaEdge
Aug 30, 2021 · Databases

Master‑Slave Replication & Read/Write Splitting: Scaling MySQL While Avoiding Latency

This article explains the principles of master‑slave read/write separation, the MySQL binlog‑based replication process, its side effects, practical ways to mitigate replication lag, and how middleware or proxy layers can simplify database access in high‑concurrency environments.

Database ArchitectureRead/Write SplittingReplication
0 likes · 12 min read
Master‑Slave Replication & Read/Write Splitting: Scaling MySQL While Avoiding Latency
Selected Java Interview Questions
Selected Java Interview Questions
Aug 30, 2021 · Databases

MySQL Interview Questions and Answers: Indexes, InnoDB vs MyISAM, Transactions, Optimization, and Design

This article compiles a comprehensive set of MySQL interview questions covering index types, the differences between MyISAM and InnoDB, the rationale for auto‑increment primary keys, sharding strategies, ACID properties, isolation levels, storage‑engine trade‑offs, normalization, index best practices, data types, performance tuning, locking mechanisms, B+Tree characteristics, and common SQL operations.

Database designInnoDBTransactions
0 likes · 28 min read
MySQL Interview Questions and Answers: Indexes, InnoDB vs MyISAM, Transactions, Optimization, and Design
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 30, 2021 · Databases

Changes in MySQL Internal Temporary Table Storage from 5.6 to 8.0

This article explains how MySQL handles internal temporary tables, detailing the evolution of storage mechanisms and related parameters from version 5.6 through 5.7 to 8.0, including the shift to TempTable, shared session temporary tables, memory‑mapped files, and configuration tips to avoid space issues.

ConfigurationTempTableinternal temporary tables
0 likes · 9 min read
Changes in MySQL Internal Temporary Table Storage from 5.6 to 8.0
Top Architect
Top Architect
Aug 29, 2021 · Databases

MySQL Query Optimization Techniques and Common Pitfalls

This article presents a comprehensive guide to improving MySQL query performance by addressing common issues such as inefficient LIMIT usage, implicit type conversion, sub‑query updates, mixed sorting, EXISTS clauses, condition push‑down, early range reduction, intermediate result push‑down, and demonstrates how using WITH can simplify complex statements.

Database PerformanceQuery TuningSQL Optimization
0 likes · 13 min read
MySQL Query Optimization Techniques and Common Pitfalls
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 27, 2021 · Databases

Analyzing MySQL Memory Usage with tcmalloc and pprof

This article demonstrates how to use Google’s tcmalloc library and the pprof tool to capture and analyze MySQL heap dumps, revealing memory allocations that performance_schema cannot track, and explains the experimental setup, data collection, and interpretation of the resulting memory allocation graphs.

Performance SchemaTCMallocmysql
0 likes · 4 min read
Analyzing MySQL Memory Usage with tcmalloc and pprof
Architect's Journey
Architect's Journey
Aug 26, 2021 · Databases

Peeling Back MySQL InnoDB: A Deep Dive into Its Storage Engine

This article dissects MySQL's InnoDB storage engine by first exposing the internal page layout, then explaining the clustered index organization, and finally detailing the slot mechanism used for intra‑page queries, while illustrating insertion strategies and space‑reclamation techniques.

Clustered IndexDatabase InternalsInnoDB
0 likes · 11 min read
Peeling Back MySQL InnoDB: A Deep Dive into Its Storage Engine
Shopee Tech Team
Shopee Tech Team
Aug 26, 2021 · Databases

Database Architecture Evolution and Sharding Practice in Shopee's Logistics Service

Shopee’s Logistics Channel Service migrated from a shared‑cluster MySQL setup to dedicated clusters, added TiDB for transient tracking data, and ultimately adopted hash‑based sharding with separate order and tracking services plus an asynchronous compensation mechanism, enabling uniform data distribution, cross‑database consistency, six‑month archiving, and scalable growth without rebalancing.

Database ArchitectureDistributed SystemsTiDB
0 likes · 18 min read
Database Architecture Evolution and Sharding Practice in Shopee's Logistics Service
Top Architect
Top Architect
Aug 26, 2021 · Databases

Understanding MySQL Locks: Table, Row, and Page Locking Mechanisms

This article explains why MySQL uses locks, describes table‑level, row‑level, and page‑level locking, outlines lock types such as shared, exclusive, and intention locks, and provides practical usage examples and common troubleshooting tips for InnoDB and other storage engines.

InnoDBLocksconcurrency
0 likes · 7 min read
Understanding MySQL Locks: Table, Row, and Page Locking Mechanisms
FunTester
FunTester
Aug 26, 2021 · Databases

Master MySQL Interview Questions: 33 Essential Queries and Answers

This article presents a complete MySQL interview guide, including a script to create and populate tables for students, teachers, courses, scores, and grades, followed by 33 common interview questions with detailed SQL solutions covering selection, aggregation, joins, subqueries, and ordering.

Queriesdata importdatabase
0 likes · 19 min read
Master MySQL Interview Questions: 33 Essential Queries and Answers
vivo Internet Technology
vivo Internet Technology
Aug 25, 2021 · Databases

Introduction to MySQL Group Replication (MGR): Features, Evolution, Deployment and Testing

MySQL Group Replication, introduced in 2016, delivers high‑availability, strong consistency, fault‑tolerant and scalable MySQL clusters through a Paxos‑based, plugin‑driven architecture that supports both single‑primary and multi‑primary modes, with detailed installation, configuration, deployment and testing guidance, while noting its limited current adoption due to ecosystem maturity.

ClusterGroup ReplicationReplication
0 likes · 15 min read
Introduction to MySQL Group Replication (MGR): Features, Evolution, Deployment and Testing
dbaplus Community
dbaplus Community
Aug 24, 2021 · Databases

Why Slow SQL Hurts Your MySQL and How to Fix It

This article explains the dangers of slow SQL in MySQL, walks through the query execution flow, details InnoDB storage engine architecture and index types, and provides practical strategies for indexing, query rewriting, and configuration to eliminate performance bottlenecks.

InnoDBmysqlslow-query
0 likes · 14 min read
Why Slow SQL Hurts Your MySQL and How to Fix It
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 24, 2021 · Databases

Troubleshooting MySQL Group Replication Transaction Certification Errors and Recovery

An in‑depth analysis of MySQL Group Replication (MGR) transaction certification failures, covering error symptoms, root‑cause investigation, replication‑group transaction set mismatches, and step‑by‑step recovery procedures with code examples and best‑practice recommendations to keep MGR clusters clean.

Group ReplicationTransaction Certificationdatabase
0 likes · 19 min read
Troubleshooting MySQL Group Replication Transaction Certification Errors and Recovery
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 23, 2021 · Databases

How MySQL 8.0’s Data Dictionary Eliminates Metadata Redundancy and Boosts Performance

MySQL 8.0 replaces duplicated server‑level and engine‑level metadata with a unified data dictionary stored in InnoDB, introduces a two‑level cache (local and shared) built on templated hash maps, and provides atomic DDL operations, dramatically improving metadata consistency, performance, and management simplicity.

DDLcache architecturedata dictionary
0 likes · 21 min read
How MySQL 8.0’s Data Dictionary Eliminates Metadata Redundancy and Boosts Performance
Selected Java Interview Questions
Selected Java Interview Questions
Aug 23, 2021 · Backend Development

Optimizing Bulk Data Import into MySQL with MyBatis: From Simple List Insertion to Multi‑Threaded Batch Processing

This article demonstrates how to dramatically speed up importing tens of thousands of records into MySQL by evolving a naïve list‑to‑MySQL approach into grouped batch inserts and finally a multi‑threaded MyBatis solution, while also addressing packet size limits and configuration tweaks.

BackendBatch InsertMyBatis
0 likes · 9 min read
Optimizing Bulk Data Import into MySQL with MyBatis: From Simple List Insertion to Multi‑Threaded Batch Processing
Java Interview Crash Guide
Java Interview Crash Guide
Aug 23, 2021 · Databases

Understanding MySQL Isolation Levels and MVCC: A Deep Dive

This article explains MySQL transaction isolation levels, the four concurrency problems (dirty write, dirty read, non‑repeatable read, phantom), how MVCC and version chains work, and the differences between READ COMMITTED and REPEATABLE READ using practical examples and diagrams.

Isolation LevelsMVCCRead View
0 likes · 10 min read
Understanding MySQL Isolation Levels and MVCC: A Deep Dive
Top Architect
Top Architect
Aug 20, 2021 · Databases

Querying Multi‑Business Unit Product Sales Statistics with MySQL and MyBatis Dynamic SQL

This article explains how to retrieve sales statistics for multiple business units and their associated products from a MySQL table, compares several implementation approaches—including loop queries, OR concatenation, mixed filtering, and row‑comparison using MyBatis dynamic SQL—evaluates index usage, and provides the final recommended solution.

Database QueryDynamic SQLMyBatis
0 likes · 8 min read
Querying Multi‑Business Unit Product Sales Statistics with MySQL and MyBatis Dynamic SQL
FunTester
FunTester
Aug 20, 2021 · Databases

Why Is One MySQL CPU Core at 99%? A Step‑by‑Step Troubleshooting Guide

During a performance test a MySQL server showed one CPU core constantly at 99% while the others were idle, prompting a detailed investigation that checks I/O thread settings, multi‑core utilization, transaction locks, slow‑query logging, and index optimization to resolve the bottleneck.

Database OptimizationInnoDBSlow Query Log
0 likes · 6 min read
Why Is One MySQL CPU Core at 99%? A Step‑by‑Step Troubleshooting Guide