Tagged articles
5000 articles
Page 17 of 50
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 6, 2024 · Databases

Diagnosing and Resolving MySQL Optimizer Mis‑selection of Indexes

This article recounts a real‑world incident where MySQL 5.7 chose a sub‑optimal index, causing a three‑second slow query, and explains how the team identified the root cause, used EXPLAIN and optimizer trace, and applied fixes such as forced index hints and data cleanup.

Index SelectionOptimizer_traceexplain
0 likes · 11 min read
Diagnosing and Resolving MySQL Optimizer Mis‑selection of Indexes
Architecture Digest
Architecture Digest
Mar 6, 2024 · Databases

Implementing SaaS Multi‑Tenant Architecture with Shared Database Table Partitioning in MySQL

This article explains how to design a SaaS system that isolates each subsidiary's data by adding a tenant_id column to a shared MySQL table, converting the table to LIST‑partitioned storage, and enforcing tenant‑level access through stored procedures and a MyBatis interceptor, complete with code examples and testing steps.

MyBatisSaaSStored Procedure
0 likes · 18 min read
Implementing SaaS Multi‑Tenant Architecture with Shared Database Table Partitioning in MySQL
php Courses
php Courses
Mar 6, 2024 · Databases

MySQL 8 New Features and Network Communication Course Overview

This course introduces MySQL 8's latest features, deep dives into its network communication mechanisms, and teaches advanced performance optimization techniques such as connection pooling, compression, and SSL encryption through hands‑on projects to enhance database efficiency and security.

databasemysqlnetwork communication
0 likes · 2 min read
MySQL 8 New Features and Network Communication Course Overview
Architecture & Thinking
Architecture & Thinking
Mar 5, 2024 · Databases

How Database Middleware Solves High‑Traffic Challenges: Connection Pools, Sharding, and More

This article examines how database middleware tackles the demanding needs of large‑scale internet services by providing centralized connection‑pool management, transparent read‑write splitting, diverse load‑balancing algorithms, sharding support, automatic failover, security controls, comprehensive monitoring, and flexible backup‑recovery mechanisms.

Connection Poolfault tolerancemonitoring
0 likes · 9 min read
How Database Middleware Solves High‑Traffic Challenges: Connection Pools, Sharding, and More
Efficient Ops
Efficient Ops
Mar 4, 2024 · Databases

How MySQL’s Ecosystem Fueled Its Rise and Shaped Modern Databases

The article traces MySQL’s origins from Monty Widenius’s early Unireg project through its rapid growth, acquisition by Sun and Oracle, and the emergence of MariaDB, highlighting how an open‑source, user‑focused ecosystem and the LAMP stack propelled MySQL to become the world’s most popular database.

Database HistoryLAMPMariaDB
0 likes · 10 min read
How MySQL’s Ecosystem Fueled Its Rise and Shaped Modern Databases
Linux Cloud Computing Practice
Linux Cloud Computing Practice
Mar 4, 2024 · Operations

Building a High‑Performance, Highly Available Membership System with ES, Redis & MySQL

To ensure the massive, multi‑platform membership service remains fast and reliable, this article details a multi‑center architecture using Elasticsearch for unified member data, Redis caching, and MySQL partitioning, along with traffic isolation, fault‑tolerant syncing, and fine‑grained flow‑control and degradation strategies.

System Architecturefault tolerancemysql
0 likes · 23 min read
Building a High‑Performance, Highly Available Membership System with ES, Redis & MySQL
Architecture Digest
Architecture Digest
Mar 1, 2024 · Databases

SQL Performance Optimization and Index Tuning in MySQL

This article walks through a MySQL 5.6 scenario with course, student, and score tables, demonstrates why a naïve sub‑query is extremely slow, and shows step‑by‑step how adding single‑column, composite, and covering indexes, as well as rewriting the query to joins, can reduce execution time from hours to milliseconds.

Index TuningSQL Optimizationdatabase
0 likes · 10 min read
SQL Performance Optimization and Index Tuning in MySQL
Liangxu Linux
Liangxu Linux
Feb 28, 2024 · Databases

Master MySQL InnoDB Full-Text Search: Indexes, Queries, and Advanced Techniques

This article explains how MySQL InnoDB implements full‑text search, covering the underlying inverted index structures, how to create and drop full‑text indexes, the MATCH…AGAINST syntax, and detailed examples of natural language, boolean, and query‑expansion search modes with practical SQL demos.

Boolean ModeFull‑Text Searchinverted index
0 likes · 12 min read
Master MySQL InnoDB Full-Text Search: Indexes, Queries, and Advanced Techniques
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 28, 2024 · Databases

Evolution of ZzoNlineDDL: From 1.0 to 2.0 – Architecture, Features, and Lessons Learned

This article chronicles the development of ZzoNlineDDL's schema‑change platform from its early 1.0 version with limited capabilities to the robust 2.0 release, detailing architectural diagrams, intelligent alteration logic, partitioning, scheduling, monitoring, user interaction, problem analysis, and practical recommendations for MySQL online DDL operations.

DatabaseOperationsOnlineDDLSchemaChange
0 likes · 35 min read
Evolution of ZzoNlineDDL: From 1.0 to 2.0 – Architecture, Features, and Lessons Learned
MaGe Linux Operations
MaGe Linux Operations
Feb 26, 2024 · Databases

Why MySQL Single Tables Hit Performance Limits and How B‑Link Trees Help

This article examines the technical reasons why MySQL single tables struggle with massive data volumes, debunks the index‑depth myth, explains InnoDB's SMO concurrency bottlenecks, and shows how B‑Link Tree indexes and heap‑organized tables in GaussDB provide superior performance for large‑scale workloads.

B-Link TreeB-TreeDatabase Performance
0 likes · 10 min read
Why MySQL Single Tables Hit Performance Limits and How B‑Link Trees Help
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 26, 2024 · Databases

MySQL 8.2 Community vs Enterprise: Performance Comparison and Findings

An extensive benchmark compares MySQL 8.2 Community and Enterprise editions using sysbench and TPC‑C on identical EC2 instances, revealing that, under default configurations, the Enterprise edition offers no consistent performance advantage over the Community edition, with only occasional gains from optional plugins.

Community vs EnterpriseDatabase ConfigurationSysbench
0 likes · 10 min read
MySQL 8.2 Community vs Enterprise: Performance Comparison and Findings
dbaplus Community
dbaplus Community
Feb 25, 2024 · Databases

MySQL vs PostgreSQL: Performance Benchmarks, Use Cases, and Choosing the Right Database

An in‑depth comparison of MySQL and PostgreSQL covers their histories, architectural differences, benchmark results showing PostgreSQL’s superior SELECT, INSERT, and UPDATE throughput, and guidance on selecting the appropriate database based on application complexity, scale, and performance requirements.

database comparisonmysqlperformance benchmark
0 likes · 7 min read
MySQL vs PostgreSQL: Performance Benchmarks, Use Cases, and Choosing the Right Database
Su San Talks Tech
Su San Talks Tech
Feb 25, 2024 · Databases

Why MySQL Indexes Fail: B+ Tree Mechanics and Common Pitfalls

This article explains how InnoDB stores data pages and builds B+‑tree indexes, illustrates the structure of clustered, secondary and composite indexes, and enumerates typical scenarios—such as left‑most prefix violations, LIKE patterns, and function use—that cause index loss and full‑table scans.

B+TreeInnoDBdatabase
0 likes · 16 min read
Why MySQL Indexes Fail: B+ Tree Mechanics and Common Pitfalls
MaGe Linux Operations
MaGe Linux Operations
Feb 22, 2024 · Databases

Mastering PyMySQL: Complete Guide to Python‑MySQL Integration

This article provides a comprehensive guide to using PyMySQL in Python, covering installation, connection setup, CRUD operations, transaction handling, advanced features like parameterized queries and connection pooling, as well as best practices for security, performance, and monitoring.

Pythonbackend-developmentdatabase
0 likes · 7 min read
Mastering PyMySQL: Complete Guide to Python‑MySQL Integration
Open Source Tech Hub
Open Source Tech Hub
Feb 21, 2024 · Databases

Mastering MySQL JSON: Storage, Queries, and Best Practices

This guide explains MySQL's native JSON data type, its storage format, advantages over text columns, and provides step‑by‑step examples for creating tables, inserting JSON, querying with path operators, using built‑in functions, and handling conditional searches.

Data Typesmysqlquery
0 likes · 10 min read
Mastering MySQL JSON: Storage, Queries, and Best Practices
Top Architect
Top Architect
Feb 21, 2024 · Backend Development

Cache Consistency Strategies Between MySQL and Redis

This article explains the classic cache consistency problem between MySQL and Redis, analyzes why inconsistencies occur, and details four common design patterns—delete‑then‑update, update‑then‑invalidate (Cache‑Aside), Read/Write‑Through, and Write‑Behind—along with their advantages, drawbacks, and typical execution flows.

Cache ConsistencyDatabase CachingDesign Patterns
0 likes · 9 min read
Cache Consistency Strategies Between MySQL and Redis
Python Programming Learning Circle
Python Programming Learning Circle
Feb 21, 2024 · Frontend Development

Python Tkinter Vaccine Management System Tutorial with MySQL Integration

This article walks readers through building a complete vaccine management desktop application using Python's Tkinter for the graphical interface and MySQL for data storage, covering UI design, database connection, user registration, login, CRUD operations for vaccine records, and query functionalities, all illustrated with full source code examples.

GUIPythonTkinter
0 likes · 25 min read
Python Tkinter Vaccine Management System Tutorial with MySQL Integration
Su San Talks Tech
Su San Talks Tech
Feb 21, 2024 · Databases

Mastering MySQL Sharding: Strategies, Pitfalls, and Best Practices

This comprehensive guide explains why MySQL sharding (分库分表) is essential for handling massive data growth, outlines various horizontal and vertical partitioning strategies, discusses common challenges such as hot‑spot, cross‑database queries, pagination, and transaction handling, and compares popular middleware solutions.

Partitioningdatabase scalingmysql
0 likes · 28 min read
Mastering MySQL Sharding: Strategies, Pitfalls, and Best Practices
Java Backend Technology
Java Backend Technology
Feb 20, 2024 · Databases

7 Proven MySQL Query Optimizations to Slash Execution Time

This article examines common MySQL performance pitfalls—such as large OFFSET limits, implicit type conversion, sub‑query updates, mixed sorting, EXISTS clauses, and condition push‑down—and demonstrates concise rewrites, including JOINs, UNION ALL, early range reduction, and WITH clauses that can reduce query execution from seconds to milliseconds.

Query RewriteSQL Optimizationmysql
0 likes · 13 min read
7 Proven MySQL Query Optimizations to Slash Execution Time
MaGe Linux Operations
MaGe Linux Operations
Feb 19, 2024 · Databases

Secure MySQL 8 with SSL: Step-by-Step Guide to Encrypt Your Data

Learn how to secure MySQL 8 connections by enabling SSL, covering the protocol’s encryption and authentication principles, generating certificates, configuring server and client settings, and testing the encrypted connection with detailed commands and practical examples.

ConfigurationDatabase SecuritySSL
0 likes · 6 min read
Secure MySQL 8 with SSL: Step-by-Step Guide to Encrypt Your Data
Zuoyebang Tech Team
Zuoyebang Tech Team
Feb 19, 2024 · Databases

How OceanBase’s HTAP Architecture Solved Our MySQL Scaling Pain Points

Facing rapid data growth, our team struggled with MySQL scaling, costly distributed refactoring, and inflexible storage; by adopting OceanBase’s native distributed HTAP platform we achieved elastic scaling, strong consistency, over 60% storage savings, and multi‑tenant performance gains for both OLTP and OLAP workloads.

HTAPOceanBasedatabase migration
0 likes · 9 min read
How OceanBase’s HTAP Architecture Solved Our MySQL Scaling Pain Points
php Courses
php Courses
Feb 19, 2024 · Backend Development

Using PHP mysqli_query to Execute MySQL Queries

This article explains how to use PHP's mysqli_query function to perform MySQL operations such as SELECT, INSERT, UPDATE, and DELETE, providing a step‑by‑step example that creates a connection, runs a SELECT query, processes results, and handles errors and cleanup.

BackendPHPdatabase
0 likes · 4 min read
Using PHP mysqli_query to Execute MySQL Queries
Cognitive Technology Team
Cognitive Technology Team
Feb 19, 2024 · Databases

Understanding MySQL Deadlocks and How to Prevent Them

This article explains MySQL deadlocks, describing how they occur in InnoDB due to resource contention, outlines common causes such as race conditions, poor indexing, long transactions, lock upgrades, and provides practical prevention strategies including deadlock detection, short transactions, query optimization, lock timeouts, monitoring tools, lock ordering, and appropriate lock levels.

InnoDBdatabasedeadlock
0 likes · 5 min read
Understanding MySQL Deadlocks and How to Prevent Them
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Feb 16, 2024 · Databases

MySQL Master‑Slave Synchronization: Three Common Approaches and Consistency Solutions

This article explains why read‑write separation is essential for high‑concurrency systems and details three MySQL master‑slave synchronization methods—half‑synchronous replication, database‑middleware synchronization, and cache‑key write tracking—along with their advantages, drawbacks, and consistency considerations.

CacheConsistencyMaster‑Slave
0 likes · 6 min read
MySQL Master‑Slave Synchronization: Three Common Approaches and Consistency Solutions
Java Captain
Java Captain
Feb 16, 2024 · Databases

Key MySQL Concepts and Best Practices

This article summarizes essential MySQL concepts—including basic terminology, data types, SQL commands, indexes, views, storage engines, backup methods, and performance tuning techniques—to help developers understand and effectively apply this powerful open‑source relational database in real‑world projects.

BackupStorageEnginedatabase
0 likes · 4 min read
Key MySQL Concepts and Best Practices
MaGe Linux Operations
MaGe Linux Operations
Feb 13, 2024 · Databases

How to Detect, Diagnose, and Prevent MySQL InnoDB Deadlocks

This guide explains what MySQL deadlocks are, shows how to use InnoDB status and performance‑schema queries to locate them, demonstrates a reproducible deadlock scenario, and provides practical prevention techniques such as reducing transaction size, quick commits, proper indexing, and consistent access order.

InnoDBPreventiondeadlock
0 likes · 11 min read
How to Detect, Diagnose, and Prevent MySQL InnoDB Deadlocks
MaGe Linux Operations
MaGe Linux Operations
Feb 13, 2024 · Fundamentals

Understanding Optimistic vs Pessimistic Locks: When and How to Use Them

This article explains the purpose of locks in concurrent environments, compares optimistic (CAS) and pessimistic locking mechanisms, outlines their advantages, disadvantages, suitable scenarios, and provides PHP/PDO code examples demonstrating implementation and performance testing under high concurrency.

Concurrency ControlPHPmysql
0 likes · 11 min read
Understanding Optimistic vs Pessimistic Locks: When and How to Use Them
Liangxu Linux
Liangxu Linux
Feb 10, 2024 · Databases

How to Stress Test MySQL with mysqlslap and Sysbench: A Step‑by‑Step Guide

This article explains how to use MySQL's built‑in mysqlslap tool and the third‑party sysbench utility to benchmark MySQL performance, covering configuration changes, command‑line options, data preparation, execution of read/write and I/O tests, and interpretation of the resulting metrics.

Database BenchmarkLinuxSysbench
0 likes · 16 min read
How to Stress Test MySQL with mysqlslap and Sysbench: A Step‑by‑Step Guide
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 7, 2024 · Databases

Accelerating MySQL Data Recovery with Xtrabackup: Scenarios and Techniques

This article explains how DBA engineers can speed up MySQL data recovery using Xtrabackup by covering three scenarios—full backup with binlog, single-database restore, and single-table restore—detailing steps such as SQL thread replay, parallel replication, and transportable tablespace techniques with practical command examples.

BackupRecoveryReplication
0 likes · 21 min read
Accelerating MySQL Data Recovery with Xtrabackup: Scenarios and Techniques
AI Illustrated Series
AI Illustrated Series
Feb 7, 2024 · Databases

Why Store IPv4 Addresses as UNSIGNED INT in MySQL? Space, Speed, and Queries Explained

Storing IPv4 addresses as a 32‑bit UNSIGNED INT instead of VARCHAR saves storage space, reduces index size, enables faster range queries, and leverages MySQL’s built‑in INET_ATON/INET_NTOA functions, while the trade‑offs include reduced readability and the need for conversion code, as demonstrated with benchmarks and Java examples.

INET_ATONIP address storageUNSIGNED INT
0 likes · 5 min read
Why Store IPv4 Addresses as UNSIGNED INT in MySQL? Space, Speed, and Queries Explained
Laravel Tech Community
Laravel Tech Community
Feb 5, 2024 · Backend Development

Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices

This article explains the relationship between MySQL and Redis, the classic cache‑consistency problem, and compares four common cache‑update patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—detailing their workflows, advantages, and drawbacks.

Cache ConsistencyDesign Patternscache-aside
0 likes · 7 min read
Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices
dbaplus Community
dbaplus Community
Feb 5, 2024 · Databases

Inside InnoDB: How MySQL Stores Data, Row Formats, Pages, and Indexes

This article explains MySQL's InnoDB storage engine, covering where data files are kept, the different row formats (compact, redundant, dynamic, compressed), the internal 16 KB page layout, record header fields, overflow handling, and how B‑Tree indexes (clustered and secondary) are built and accessed.

B+TreeData PageDatabase Storage
0 likes · 22 min read
Inside InnoDB: How MySQL Stores Data, Row Formats, Pages, and Indexes
php Courses
php Courses
Feb 5, 2024 · Databases

How to Properly Close MySQL Connection Pools in PHP

This article explains the concept of MySQL connection pools in PHP, demonstrates how to create, use, and correctly close both individual connections and pooled connections using mysqli functions and a custom pool class, and highlights the importance of releasing resources to maintain application performance.

BackendConnection PoolPHP
0 likes · 5 min read
How to Properly Close MySQL Connection Pools in PHP
Laravel Tech Community
Laravel Tech Community
Feb 4, 2024 · Databases

Understanding Full-Text Search and Inverted Indexes in MySQL InnoDB

This article explains how MySQL InnoDB implements full‑text search using inverted indexes, covers the creation and usage of FULLTEXT indexes, demonstrates various MATCH…AGAINST query modes such as natural language, boolean, and query expansion, and shows how to manage and delete full‑text indexes with practical SQL examples.

Boolean Modeinverted indexmysql
0 likes · 10 min read
Understanding Full-Text Search and Inverted Indexes in MySQL InnoDB
Su San Talks Tech
Su San Talks Tech
Feb 4, 2024 · Databases

Essential MySQL Design & Performance Guidelines You Should Follow

This article compiles practical MySQL best‑practice rules covering character set selection, InnoDB usage, naming conventions, field design, index strategies, SQL coding standards, and operational safeguards to help developers build robust, high‑performance databases.

best practicesmysqlperformance optimization
0 likes · 24 min read
Essential MySQL Design & Performance Guidelines You Should Follow
Architect's Guide
Architect's Guide
Feb 4, 2024 · Databases

Evaluating Large MySQL Table Size and Optimizing Query Performance with Partitioning, Sharding, and Archiving

This article explains how to assess MySQL table size through table capacity, disk usage, and instance resources, illustrates the impact of B+‑tree index depth on query speed, and presents three practical solutions—table partitioning, database sharding, and hot‑cold data archiving—to improve performance.

Database OptimizationPartitioningdata archiving
0 likes · 15 min read
Evaluating Large MySQL Table Size and Optimizing Query Performance with Partitioning, Sharding, and Archiving
MaGe Linux Operations
MaGe Linux Operations
Feb 3, 2024 · Operations

How to Build a 100% High‑Availability Membership System with ES, Redis, and MySQL

This article details the design and implementation of a highly available membership system that handles billions of users and peak traffic of over 20,000 TPS, covering Elasticsearch dual‑center master‑slave clusters, traffic‑isolated three‑cluster architecture, Redis caching with distributed locks, and dual‑center MySQL partitioning.

Backend ArchitectureElasticsearchmysql
0 likes · 20 min read
How to Build a 100% High‑Availability Membership System with ES, Redis, and MySQL
Java Captain
Java Captain
Feb 1, 2024 · Databases

Best Practices for MySQL Table Design

This article outlines ten essential MySQL table design best practices, covering requirement analysis, data type selection, normalization, indexing, keys, character sets, storage engines, partitioning, backup, and performance monitoring to improve scalability, maintainability, and efficiency.

Database designStorage Enginebest practices
0 likes · 5 min read
Best Practices for MySQL Table Design
ITPUB
ITPUB
Feb 1, 2024 · Databases

Why MySQL Now Lets You Write Stored Procedures in JavaScript

Oracle announced preview support for JavaScript‑based stored procedures in MySQL, showing how to write, call, and debug them using GraalVM, while industry reactions highlight both excitement and concerns about mixing languages in database logic.

JavaScriptStored Proceduresdatabase
0 likes · 4 min read
Why MySQL Now Lets You Write Stored Procedures in JavaScript
Open Source Linux
Open Source Linux
Feb 1, 2024 · Operations

Top Linux Ops Interview Q&A: RAID, Load Balancing, MySQL, and More

This article compiles essential Linux operations interview questions covering server management for hundreds of machines, RAID 0/1/5 principles, differences among LVS, Nginx and HAProxy, proxy servers, middleware, Tomcat ports, CDN, gray releases, DNS resolution, RabbitMQ, LVS modes, MySQL lock diagnostics, replication delay mitigation, root password reset, backup tools, keepalived health checks, common command‑line utilities, TCP/IP model, Nginx modules, web load‑balancing architectures, and practical shell scripts for monitoring and maintenance.

LinuxRAIDinterview
0 likes · 32 min read
Top Linux Ops Interview Q&A: RAID, Load Balancing, MySQL, and More
Top Architect
Top Architect
Jan 31, 2024 · Backend Development

Implementing an Audit Functionality with SpringBoot and Vue Frontend

This article provides a step‑by‑step guide on designing and implementing an audit feature using SpringBoot for the backend, MySQL for data storage, and Vue.js for the front‑end, covering multiple implementation strategies, database schema creation, RESTful APIs, file upload handling, and UI interaction details.

FileUploadREST APISpringBoot
0 likes · 20 min read
Implementing an Audit Functionality with SpringBoot and Vue Frontend
Architect
Architect
Jan 30, 2024 · Backend Development

How to Keep MySQL and Redis in Sync: Practical Cache Consistency Patterns

This article explains why cache inconsistency occurs between MySQL and Redis, then walks through four concrete design patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—detailing each step, trade‑offs, and failure scenarios to help engineers choose the most suitable approach.

BackendCache Consistencycache-aside
0 likes · 9 min read
How to Keep MySQL and Redis in Sync: Practical Cache Consistency Patterns
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 30, 2024 · Databases

Troubleshooting VARCHAR Column Expansion Issues with MySQL Online DDL

This article analyzes why ALTER TABLE operations that extend VARCHAR columns sometimes fail in MySQL, explains the underlying Online DDL constraints, presents several real‑world problems such as default‑value handling, indexed columns, and hidden table‑rebuild quirks, and offers practical solutions for each case.

ALTER TABLEDatabase AdministrationOnline DDL
0 likes · 17 min read
Troubleshooting VARCHAR Column Expansion Issues with MySQL Online DDL
Architecture Digest
Architecture Digest
Jan 30, 2024 · Backend Development

Implementing an Audit Functionality with SpringBoot, MySQL, and Vue.js

This article provides a step‑by‑step guide on designing and implementing an audit workflow in a SpringBoot application, covering database schema creation, multiple backend implementation strategies, RESTful controller code, Vue.js front‑end integration, and file upload handling with deduplication.

REST APISpringBootVue.js
0 likes · 20 min read
Implementing an Audit Functionality with SpringBoot, MySQL, and Vue.js
Architect's Guide
Architect's Guide
Jan 29, 2024 · Databases

Performance Comparison of IN vs JOIN in MySQL Queries

This article experimentally compares the efficiency of using IN clauses versus JOIN operations in MySQL by testing small, medium, and large datasets, measuring query costs, execution times, and highlighting the scalability limits of IN statements.

INJOINPHP
0 likes · 8 min read
Performance Comparison of IN vs JOIN in MySQL Queries
Liangxu Linux
Liangxu Linux
Jan 28, 2024 · Databases

Master MySQL Date Functions: CURDATE, NOW, DATE_FORMAT, DATEDIFF, and More

This guide explains MySQL’s most useful date and time functions—including CURDATE(), NOW(), DATE_FORMAT(), DATEDIFF(), DATE_ADD(), DATE_SUB(), and DATE()—with clear syntax examples and sample results, helping developers manipulate temporal data efficiently in their databases.

Date FunctionsTime Manipulationdatabase
0 likes · 4 min read
Master MySQL Date Functions: CURDATE, NOW, DATE_FORMAT, DATEDIFF, and More
Liangxu Linux
Liangxu Linux
Jan 28, 2024 · Databases

Master MySQL Date Functions: CURDATE, NOW, DATE_FORMAT, and More

This guide walks you through the most commonly used MySQL date functions—CURDATE, NOW, DATE_FORMAT, DATEDIFF, DATE_ADD, DATE_SUB, and DATE—explaining their purpose, syntax, and example results so you can handle date and time data efficiently in your databases.

CURDATEDATEDIFFdate_format
0 likes · 4 min read
Master MySQL Date Functions: CURDATE, NOW, DATE_FORMAT, and More
ITPUB
ITPUB
Jan 27, 2024 · Databases

How Many Rows Can a Single MySQL Table Really Hold? Detailed B+‑Tree Calculations

This article consolidates theory and real‑world examples to show how MySQL’s B+‑tree structure, page layout, and row format determine the maximum number of records a single table can store, providing step‑by‑step calculations for both int and bigint primary keys.

B+TreeData CapacityDatabase design
0 likes · 12 min read
How Many Rows Can a Single MySQL Table Really Hold? Detailed B+‑Tree Calculations
php Courses
php Courses
Jan 27, 2024 · Backend Development

Implementing Member Level Points Redemption in a PHP E‑Commerce Site

This tutorial explains how to create a MySQL members table, configure a PHP database connection, and build backend scripts and a web form that allow e‑commerce users to exchange points for membership level upgrades, complete with full code examples.

PHPPoints RedemptionWeb Development
0 likes · 5 min read
Implementing Member Level Points Redemption in a PHP E‑Commerce Site
Liangxu Linux
Liangxu Linux
Jan 24, 2024 · Databases

How MySQL Executes a SELECT Query: From Connection to Result

This article explains the complete lifecycle of a MySQL SELECT statement, covering the server and storage‑engine layers, the roles of the connector, query cache, parser, optimizer and executor, and provides concrete command‑line and SQL examples.

Database ArchitectureQuery Executionmysql
0 likes · 10 min read
How MySQL Executes a SELECT Query: From Connection to Result
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 23, 2024 · Databases

Changing a Primary Key to a Composite Key in TDSQL for MySQL: Dealing with sql_require_primary_key

This article explains why TDSQL for MySQL refuses to drop a primary key when the sql_require_primary_key variable is ON, analyzes the underlying parameter behavior, and provides two practical solutions—temporarily disabling the variable or combining drop and add statements—to safely convert a single‑column primary key into a composite key.

TDSQLcomposite keymysql
0 likes · 7 min read
Changing a Primary Key to a Composite Key in TDSQL for MySQL: Dealing with sql_require_primary_key
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 22, 2024 · Databases

MySQL 8.3 New Features and Removed Functionality

Version 8.3 of MySQL introduces tagged GTID replication, a selectable JSON EXPLAIN format version, enhanced thread‑pool plugin information, changes to binlog transaction dependency tracking and new CMake options, while removing several C API functions, the FLUSH HOSTS statement, and outdated replication flags.

Feature RemovalGTIDdatabase
0 likes · 6 min read
MySQL 8.3 New Features and Removed Functionality
ITPUB
ITPUB
Jan 20, 2024 · Databases

How to Cut MySQL Storage Costs by 50%: A Systematic Approach

This article outlines a comprehensive, data‑driven methodology for reducing MySQL storage expenses—including background analysis, challenge identification, a nine‑grid systematic framework, benefit estimation, safety and stability verification, gray‑scale rollout, and rollback strategies—demonstrating over 50% disk space savings in a large‑scale billing system.

Data SafetyDatabase Cost ReductionGray Deployment
0 likes · 15 min read
How to Cut MySQL Storage Costs by 50%: A Systematic Approach
Programmer DD
Programmer DD
Jan 18, 2024 · Backend Development

Why Virtual Threads Lag Behind WebFlux in Spring Boot MySQL Performance

This article examines a performance comparison of Spring Boot applications using physical threads, Java virtual threads, and WebFlux for JWT verification with MySQL, detailing test setup, code examples, benchmark results across various concurrency levels, and concluding that virtual threads perform worst due to MySQL driver incompatibility.

Spring BootVirtual ThreadsWebFlux
0 likes · 9 min read
Why Virtual Threads Lag Behind WebFlux in Spring Boot MySQL Performance
Qunar Tech Salon
Qunar Tech Salon
Jan 18, 2024 · Databases

Optimization Journey of Qunar's Database Inspection and Alarm Systems

This article details Qunar's DBA team's systematic analysis of shortcomings in their original database inspection and alarm systems, the design and implementation of comprehensive metric enhancements, risk‑level classification, automated reporting, and alarm noise reduction, and reports the significant improvements in stability, efficiency, and fault‑free operation achieved through these optimizations.

Database Monitoringalarm systeminspection system
0 likes · 15 min read
Optimization Journey of Qunar's Database Inspection and Alarm Systems
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jan 17, 2024 · Databases

Understanding Database Read‑Write Separation and Master‑Slave Replication

This article explains the concept of database read‑write separation, why it improves performance in high‑concurrency scenarios, when to apply it, the underlying master‑slave replication mechanism, and provides a MySQL example illustrating the steps of replication and its benefits for scalability and availability.

Read-Write Separationdatabasemaster-slave replication
0 likes · 6 min read
Understanding Database Read‑Write Separation and Master‑Slave Replication
政采云技术
政采云技术
Jan 17, 2024 · Databases

Using MySQL 5.7 ngram Full-Text Search for Simple Text Retrieval

This article explains how to leverage MySQL 5.7's built‑in ngram full‑text parser to implement lightweight Chinese full‑text search, covering configuration, index creation, query modes, operator usage, and performance considerations.

Boolean ModeFull‑Text SearchNGram
0 likes · 12 min read
Using MySQL 5.7 ngram Full-Text Search for Simple Text Retrieval
21CTO
21CTO
Jan 15, 2024 · Databases

How Oracle’s MySQL 8.2 Preview Brings JavaScript Stored Procedures

Oracle’s MySQL 8.2 preview introduces JavaScript stored procedures powered by GraalVM, allowing developers to write JavaScript or Java code inside the database, but the feature remains a technical preview with performance benefits, debugging support, and cautions about production use and global variable behavior.

Database DevelopmentJavaScriptStored Procedures
0 likes · 4 min read
How Oracle’s MySQL 8.2 Preview Brings JavaScript Stored Procedures
Java Tech Enthusiast
Java Tech Enthusiast
Jan 13, 2024 · Databases

Understanding MySQL COUNT() Performance and Optimization Strategies

The article explains why counting rows in large MySQL tables—especially with InnoDB—can become slow, compares COUNT() performance across storage engines and query forms, and offers optimization tactics such as using metadata counts, EXPLAIN estimates, a dedicated counting table, or periodic batch processing for accurate or approximate results.

InnoDB_countdatabase
0 likes · 12 min read
Understanding MySQL COUNT() Performance and Optimization Strategies
MaGe Linux Operations
MaGe Linux Operations
Jan 12, 2024 · Databases

Master MySQL Flow Control: IF, CASE, LOOP, WHILE, REPEAT & LEAVE Explained

This guide explains MySQL stored procedure flow‑control constructs—including IF, CASE, LOOP, WHILE, REPEAT, LEAVE and ITERATE—detailing their syntax, usage patterns, and practical examples such as salary adjustments and conditional logic, helping developers implement complex database operations efficiently.

Flow ControlStored Proceduredatabase
0 likes · 19 min read
Master MySQL Flow Control: IF, CASE, LOOP, WHILE, REPEAT & LEAVE Explained
Code Ape Tech Column
Code Ape Tech Column
Jan 12, 2024 · Databases

MySQL Event Scheduler: Concepts, Operations, and Practical Examples

This article explains MySQL event scheduler fundamentals, including enabling/disabling the scheduler, creating, altering, and dropping events, scheduling syntax, and practical examples such as generating real-time sales data and periodic statistics, providing code snippets and best‑practice guidance for database automation.

Data GenerationEvent SchedulerScheduled Tasks
0 likes · 9 min read
MySQL Event Scheduler: Concepts, Operations, and Practical Examples
Top Architect
Top Architect
Jan 11, 2024 · Databases

Implementing Multi‑Tenant SaaS Architecture with MySQL Partitioning and MyBatis Interceptor

This article demonstrates how to convert a single‑tenant MySQL application into a multi‑tenant SaaS solution by adding a tenant_id column, using shared‑database partitioning, creating tenant tables, writing stored procedures for dynamic partition management, and implementing a MyBatis interceptor for hierarchical data permissions.

MyBatisSaaSStored Procedure
0 likes · 19 min read
Implementing Multi‑Tenant SaaS Architecture with MySQL Partitioning and MyBatis Interceptor
Architecture Digest
Architecture Digest
Jan 11, 2024 · Databases

MySQL Performance Tuning Tools: mysqltuner.pl, tuning-primer.sh, and Percona Toolkit

This article introduces several MySQL performance‑tuning utilities—including mysqltuner.pl, tuning-primer.sh, and Percona Toolkit’s pt-variable-advisor and pt-query-digest—explaining how to download, run, and interpret their reports to optimize database configuration, memory usage, and query efficiency.

Database ToolsSQL OptimizationServer Administration
0 likes · 7 min read
MySQL Performance Tuning Tools: mysqltuner.pl, tuning-primer.sh, and Percona Toolkit
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 11, 2024 · Databases

Step-by-Step Guide to Managing SQL Releases with SQLE

This article provides a detailed walkthrough of using the SQLE platform to create users, configure data sources, submit SQL tickets, perform reviews, and execute releases, illustrating each step with screenshots and practical tips for effective database change management.

Database ManagementSQL ReleaseSQLE
0 likes · 7 min read
Step-by-Step Guide to Managing SQL Releases with SQLE