Tag

Query Optimization

0 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Jun 12, 2025 · Databases

How Materialized Views Boost Query Performance and Simplify Data Access

This article explains the materialized view pattern, describing why pre‑populated views are created when source data formats hinder efficient queries, how they improve performance as disposable caches, and the key considerations, trade‑offs, and scenarios for adopting this approach.

CachingDatabase DesignQuery Optimization
0 likes · 11 min read
How Materialized Views Boost Query Performance and Simplify Data Access
Architect's Tech Stack
Architect's Tech Stack
Jun 6, 2025 · Databases

Master MySQL Full-Text Search: Inverted Indexes, Queries, and Best Practices

This article explains how MySQL's InnoDB engine implements full‑text search using inverted indexes, shows how to create and use full‑text indexes with various query modes, demonstrates Boolean operators and query expansion, and covers index removal techniques.

Full-Text SearchInverted IndexMySQL
0 likes · 12 min read
Master MySQL Full-Text Search: Inverted Indexes, Queries, and Best Practices
Java Tech Enthusiast
Java Tech Enthusiast
Jun 3, 2025 · Backend Development

Common MySQL Index Failure Scenarios and How to Diagnose Them

This article presents a series of MySQL interview questions and answers that illustrate typical situations where indexes become ineffective—such as leading wildcards in LIKE, NOT IN, NOT EXISTS, functions, inequality operators, OR conditions, mismatched ORDER BY, large result sets, and explains how to analyze execution plans and use FORCE INDEX to improve performance.

MySQLQuery OptimizationSQL
0 likes · 8 min read
Common MySQL Index Failure Scenarios and How to Diagnose Them
ByteDance Data Platform
ByteDance Data Platform
Apr 25, 2025 · Databases

How ByteDance’s AQETuner Cuts Query Latency by 23% and Boosts Reliability

ByteDance Data Platform’s recent breakthroughs in database research—spanning query‑level Bayesian tuning, adaptive stream‑processing parallelism, and learned cardinality estimation—were highlighted by two papers accepted at VLDB 2025 and ICDE 2025, showcasing significant performance gains and real‑world deployments.

AIQuery Optimizationcardinality estimation
0 likes · 5 min read
How ByteDance’s AQETuner Cuts Query Latency by 23% and Boosts Reliability
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 TuningQuery Optimization
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.

IndexingMySQLQuery Optimization
0 likes · 10 min read
SQL Optimization Steps and Common Scenarios
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 9, 2025 · Databases

Understanding MySQL EXPLAIN Output Formats and Using JSON for Detailed Query Cost Analysis

This article explains the three MySQL EXPLAIN output formats—TRADITIONAL, JSON, and TREE—demonstrates how the JSON format provides richer cost and data‑read information, compares query costs of sample SQL statements, and offers practical optimization suggestions for poorly performing joins.

Database PerformanceEXPLAINJSON
0 likes · 9 min read
Understanding MySQL EXPLAIN Output Formats and Using JSON for Detailed Query Cost Analysis
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 2, 2025 · Databases

How VictoriaMetrics' Distributed Architecture Scales Massive Time‑Series Data

VictoriaMetrics employs a modular, horizontally scalable architecture composed of vmagent, vminsert, vmstorage, vmselect, and vmalert, each handling data collection, ingestion, storage, querying, and alerting, while leveraging consistent hashing, LSM‑tree storage, TSID indexing, and multi‑tenant isolation to efficiently manage large‑scale time‑series workloads.

Query OptimizationScalable storageVictoriaMetrics
0 likes · 11 min read
How VictoriaMetrics' Distributed Architecture Scales Massive Time‑Series Data
Cognitive Technology Team
Cognitive Technology Team
Mar 29, 2025 · Databases

Understanding MySQL Index Merge: Types, Use Cases, and Optimization Strategies

The article explains MySQL's Index Merge optimization, detailing its three types—Intersection, Union, and Sort‑Union—when it is beneficial, how to design indexes and rewrite queries for better performance, and the associated costs and limitations.

MySQLPerformance TuningQuery Optimization
0 likes · 5 min read
Understanding MySQL Index Merge: Types, Use Cases, and Optimization Strategies
Cognitive Technology Team
Cognitive Technology Team
Mar 28, 2025 · Databases

Index Condition Pushdown (ICP) Optimization in MySQL

Index Condition Pushdown (ICP) is a MySQL query‑optimization technique that pushes eligible WHERE predicates to the storage engine so that index entries can filter rows early, reducing row fetches and server‑engine communication.

Index Condition PushdownMySQLQuery Optimization
0 likes · 5 min read
Index Condition Pushdown (ICP) Optimization in MySQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 20, 2025 · Databases

How to Interpret the rows Value in MySQL EXPLAIN Output

This article explains what the rows column in MySQL EXPLAIN means, demonstrates three situations—when a small rows value indicates good performance, when it does not, and when rows is misleading—using concrete SQL examples, force‑index tricks, and multi‑table join analyses to show why rows alone cannot reliably judge query efficiency.

EXPLAINIndexesMySQL
0 likes · 10 min read
How to Interpret the rows Value in MySQL EXPLAIN Output
DataFunSummit
DataFunSummit
Mar 12, 2025 · Big Data

Principles and Common Optimization Techniques of the Spark SQL Optimizer

This article explains the underlying principles of the Spark SQL optimizer and presents three classic optimization paradigms—push‑down optimization, operator elimination/merging, and expression elimination/replacement—illustrating each with concrete rule implementations and code examples.

Big DataQuery Optimizationoptimizer
0 likes · 12 min read
Principles and Common Optimization Techniques of the Spark SQL Optimizer
Architecture Digest
Architecture Digest
Mar 11, 2025 · Databases

Why You Should Avoid IN and NOT IN in SQL Queries: Performance Issues and Common Pitfalls

This article explains why the SQL keywords IN and NOT IN often lead to poor performance and unexpected results, demonstrates the problems with large tables and NULL values, and recommends using EXISTS, NOT EXISTS, or JOIN alternatives for more reliable and efficient queries.

Database PerformanceEXISTSIN
0 likes · 5 min read
Why You Should Avoid IN and NOT IN in SQL Queries: Performance Issues and Common Pitfalls
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 24, 2025 · Databases

MySQL EXPLAIN EXTRA: Interpreting SEMI JOIN Hints and Related Optimizations

This article explains how to read MySQL's EXPLAIN EXTRA column, covering SEMI JOIN hints such as FirstMatch, Start/End temporary, LooseScan, and the Range‑checked‑for‑each‑record optimization, with concrete examples and command‑line output to illustrate each case.

Database PerformanceEXPLAINMySQL
0 likes · 9 min read
MySQL EXPLAIN EXTRA: Interpreting SEMI JOIN Hints and Related Optimizations
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.

IndexingMySQLQuery Optimization
0 likes · 17 min read
SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies
JD Tech Talk
JD Tech Talk
Feb 5, 2025 · Databases

Optimizing Query Performance and Data Architecture for JD BIP Procurement System

This article details how JD’s BIP procurement system tackled massive data volume and complex query performance issues by reducing slow SQL, partitioning “in‑stock” orders, migrating large datasets to Elasticsearch, implementing dynamic query routing, and establishing robust monitoring, resulting in a 92% data reduction and smoother operations.

Big DataData PipelineElasticsearch
0 likes · 11 min read
Optimizing Query Performance and Data Architecture for JD BIP Procurement System
Architect's Guide
Architect's Guide
Jan 17, 2025 · Databases

Understanding MySQL Multi‑Table Join Performance Compared to PostgreSQL and Query Decomposition Strategies

The article compares MySQL and PostgreSQL multi‑table join capabilities, explains why MySQL’s nested‑loop joins can be less efficient for complex queries, and discusses how decomposing joins into separate single‑table queries or moving logic to the service layer can improve performance, scalability, and caching.

Database PerformanceJOINMySQL
0 likes · 7 min read
Understanding MySQL Multi‑Table Join Performance Compared to PostgreSQL and Query Decomposition Strategies
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.

IndexingQuery OptimizationSQL
0 likes · 8 min read
Practical Guide to Database Indexing: When and How to Create Effective Indexes