Tag

Indexing

1 views collected around this technical thread.

IT Xianyu
IT Xianyu
Jun 17, 2025 · Databases

Master MySQL Performance: From Slow Queries to Lightning‑Fast Databases

This guide walks you through identifying MySQL bottlenecks, using EXPLAIN, optimizing indexes, rewriting queries, tuning configuration, applying architectural patterns, and learning from real‑world cases to dramatically speed up your database.

Database TuningEXPLAINIndexing
0 likes · 9 min read
Master MySQL Performance: From Slow Queries to Lightning‑Fast Databases
Architecture & Thinking
Architecture & Thinking
May 14, 2025 · Databases

Master MySQL EXPLAIN: Decode Execution Plans to Boost Query Performance

This article explains how to use MySQL's EXPLAIN command to analyze slow queries, interprets each field in the execution plan, provides practical examples and optimization techniques, and offers advanced diagnostics for improving index usage and overall SQL performance.

EXPLAINIndexingMySQL
0 likes · 10 min read
Master MySQL EXPLAIN: Decode Execution Plans to Boost Query Performance
Architect
Architect
Apr 29, 2025 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration

A real‑world MySQL data‑migration case study shows how using INSERT INTO SELECT without proper indexing caused a full table scan, OOM errors, and data loss, and explains how to avoid the pitfall by adding appropriate indexes and understanding transaction locking.

Full Table ScanINSERT INTO SELECTIndexing
0 likes · 8 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration
macrozheng
macrozheng
Apr 21, 2025 · Backend Development

Boost Your App with Meilisearch: Fast, Lightweight Search Engine Tutorial

This guide introduces Meilisearch, a lightweight, fast search engine with RESTful API, covering its features, Docker installation, index and settings management, document operations, and advanced search queries, while also showcasing a real‑world SpringBoot‑Vue e‑commerce project that integrates Meilisearch for instant, accurate results.

DockerIndexingMeilisearch
0 likes · 10 min read
Boost Your App with Meilisearch: Fast, Lightweight Search Engine Tutorial
IT Xianyu
IT Xianyu
Apr 18, 2025 · Databases

Comprehensive Guide to SQL Basics, Advanced Queries, and Performance Optimization

This article provides a thorough tutorial on SQL fundamentals, including statement order, core clause rules, templates for SELECT/INSERT/UPDATE/DELETE, practical multi‑table query cases, join and subquery techniques, common pitfalls, index optimization strategies, experimental performance data, and a structured learning path for mastering database development.

IndexingPerformance TuningSQL
0 likes · 7 min read
Comprehensive Guide to SQL Basics, Advanced Queries, and Performance Optimization
Java Tech Enthusiast
Java Tech Enthusiast
Apr 14, 2025 · Databases

SQL Optimization Steps and Common Scenarios

To improve MySQL performance, first identify slow queries via logs, then examine their EXPLAIN plans and profiling data, understand optimizer traces, and apply fixes such as proper left‑most indexing, avoiding implicit conversions, large offsets, unsuitable IN/ORDER BY patterns, range‑blocking, NOT‑IN predicates, and consider alternative storage or pagination strategies for complex or massive datasets.

IndexingMySQLSQL
0 likes · 10 min read
SQL Optimization Steps and Common Scenarios
vivo Internet Technology
vivo Internet Technology
Apr 2, 2025 · Databases

Case Study of Slow SQL Governance in an Activity Middleware System

The case study details how an activity‑middleware platform tackled slow SQL problems by cleaning historic data, introducing sharding and Elasticsearch off‑loading, optimizing queries with proper indexes and simplified joins, and automating nightly deletions, ultimately cutting daily slow queries from thousands to double‑digit levels and boosting system stability.

IndexingMySQLSQL Optimization
0 likes · 17 min read
Case Study of Slow SQL Governance in an Activity Middleware System
Architect's Tech Stack
Architect's Tech Stack
Mar 31, 2025 · Databases

Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL

This article investigates MySQL's recommendation to avoid UUIDs and non‑sequential keys by benchmarking insert performance of auto‑increment, UUID, and random (snowflake) primary keys, analyzing their index structures, drawbacks, and concluding that sequential auto‑increment keys provide the best overall efficiency.

IndexingJavaMySQL
0 likes · 9 min read
Performance Comparison of Auto‑Increment, UUID, and Random Keys in MySQL
Java Architect Essentials
Java Architect Essentials
Mar 24, 2025 · Databases

Why MySQL Discourages UUID as Primary Key: Performance Comparison with Auto‑Increment and Random Keys

This article investigates MySQL's recommendation against using UUIDs or non‑sequential keys as primary keys by creating three tables, benchmarking insert and query speeds with Spring Boot/JdbcTemplate, analyzing index structures, and discussing the trade‑offs of auto‑increment, UUID, and random long keys.

Database DesignIndexingMySQL
0 likes · 11 min read
Why MySQL Discourages UUID as Primary Key: Performance Comparison with Auto‑Increment and Random Keys
Java Tech Enthusiast
Java Tech Enthusiast
Mar 13, 2025 · Databases

Performance Comparison of UUID vs Auto-Increment IDs in MySQL

Benchmarking three MySQL tables—auto_increment, UUID, and random long keys—shows that sequential auto_increment inserts are fastest, random keys are slower, and UUIDs dramatically lag due to random I/O and fragmentation, so use auto_increment for most workloads and reserve UUIDs only for required global uniqueness.

IndexingJDBCMySQL
0 likes · 10 min read
Performance Comparison of UUID vs Auto-Increment IDs in MySQL
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Mar 12, 2025 · Databases

Comprehensive MySQL Core Commands Tutorial

This article provides a step‑by‑step guide to essential MySQL operations, covering connection methods, database creation and deletion, user management, password changes, data manipulation, query techniques, indexing strategies, performance tips, and backup procedures, all illustrated with complete command examples.

IndexingMySQLQuery
0 likes · 7 min read
Comprehensive MySQL Core Commands Tutorial
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 6, 2025 · Databases

SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies

This article explains how to improve MySQL query performance by optimizing ORDER BY, GROUP BY, and LIMIT operations, covering index usage, file‑sort algorithms, covering indexes, prefix indexes, and practical code examples for large‑scale data sets.

IndexingMySQLSQL
0 likes · 19 min read
SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 3, 2025 · Databases

MySQL 5.7 → 8.0 Upgrade: Performance Degradation Analysis and Optimization

After upgrading a client from MySQL 5.7 to 8.0, query performance slowed dramatically due to changes in ORDER BY handling, and the article analyzes the root cause, presents verification tests, and recommends adding indexes to restore millisecond‑level response times.

IndexingMySQLORDER BY
0 likes · 7 min read
MySQL 5.7 → 8.0 Upgrade: Performance Degradation Analysis and Optimization
Top Architecture Tech Stack
Top Architecture Tech Stack
Feb 21, 2025 · Databases

SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies

This article explores advanced SQL query optimization techniques for large datasets, covering sorting methods, GROUP BY improvements, pagination strategies, covering indexes, and prefix index considerations, with practical examples, EXPLAIN analyses, and recommendations to reduce filesort usage and enhance performance.

IndexingMySQLSQL
0 likes · 17 min read
SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Jan 19, 2025 · Databases

Understanding MySQL Covering Indexes, Table Lookups, and the Leftmost Prefix Rule

This article explains MySQL covering indexes, how table lookups (back‑table operations) work, and the leftmost prefix rule for composite indexes, providing practical examples and tips for optimizing query performance in interview scenarios.

Back TableDatabase OptimizationIndexing
0 likes · 8 min read
Understanding MySQL Covering Indexes, Table Lookups, and the Leftmost Prefix Rule
JD Tech
JD Tech
Dec 13, 2024 · Databases

MySQL Join Algorithms and Optimization Techniques

This article explains how multi‑table joins in MySQL can become performance bottlenecks and walks through the four join algorithms—Simple Nested‑Loop, Block Nested‑Loop, Hash, and Index Nested‑Loop—showing their execution plans, code examples, and step‑by‑step optimizations using indexes and join buffers to dramatically improve query speed.

IndexingMySQLPerformance Tuning
0 likes · 19 min read
MySQL Join Algorithms and Optimization Techniques
php中文网 Courses
php中文网 Courses
Dec 9, 2024 · Backend Development

Implement Real-Time Search and Automatic Index Updating with PHP and Xunsearch

This article provides a step‑by‑step guide on setting up Xunsearch with PHP to achieve real‑time full‑text search and automatic index updates, covering environment preparation, server installation, search script implementation, and index‑updating routines.

Full-Text SearchIndexingPHP
0 likes · 4 min read
Implement Real-Time Search and Automatic Index Updating with PHP and Xunsearch
Java Architect Essentials
Java Architect Essentials
Dec 5, 2024 · Databases

Practical Guide to Database Indexing: When and How to Create Effective Indexes

This article explains why indexes are essential for query performance, lists the most common scenarios for creating single‑column, unique, composite, and prefix indexes, provides concrete SQL examples, and shows how to verify index usage with EXPLAIN.

IndexingSQLdatabase
0 likes · 8 min read
Practical Guide to Database Indexing: When and How to Create Effective Indexes
IT Services Circle
IT Services Circle
Nov 27, 2024 · Databases

15 Common MySQL Pitfalls and How to Avoid Them

This article outlines fifteen typical MySQL pitfalls—including missing WHERE clauses, lack of indexes, improper NULL handling, wrong data types, deep pagination, missing EXPLAIN analysis, charset misconfiguration, SQL injection risks, transaction misuse, collation issues, overusing SELECT *, index loss, frequent schema changes, missing backups, and unarchived historical data—and provides concrete examples and best‑practice solutions to improve performance, reliability, and security.

Database OptimizationIndexingMySQL
0 likes · 13 min read
15 Common MySQL Pitfalls and How to Avoid Them