Tagged articles
21 articles
Page 1 of 1
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 2, 2025 · Databases

How to Speed Up Slow SQL Queries: Choosing Driver Tables and Join Strategies

This article analyzes a slow SQL query by examining driver tables, execution plans, and table row counts, then demonstrates three optimization approaches—setting a small table as driver, setting a large table as driver, and switching to hash joins—showing their impact on execution time and providing practical guidelines for selecting the best strategy.

Driver TableHash JoinOceanBase
0 likes · 16 min read
How to Speed Up Slow SQL Queries: Choosing Driver Tables and Join Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Dec 3, 2024 · Databases

Why Avoid Multi‑Table Joins and Optimize with Hash Join in MySQL

The article explains why multi‑table JOINs in MySQL can degrade performance, readability, and index usage, and it presents optimization strategies such as query decomposition, data redundancy, wide tables, and introduces the hash join algorithm with detailed build and probe phases, including disk‑based handling.

Database PerformanceHash JoinJOIN optimization
0 likes · 9 min read
Why Avoid Multi‑Table Joins and Optimize with Hash Join in MySQL
Tencent Cloud Developer
Tencent Cloud Developer
Jul 11, 2024 · Databases

LibraDB Execution Engine Architecture Evolution and Optimization

LibraDB, the column‑store replica of TDSQL MySQL, has evolved its execution engine from a simple scatter‑gather model to a vectorized SMP pipeline that integrates MPP parallelism, asynchronous I/O, SIMD‑accelerated aggregation and join operators, work‑stealing, and runtime filters, thereby fully exploiting CPU, memory, network and disk resources for both OLTP and analytical queries.

Execution EngineHash JoinMPP
0 likes · 22 min read
LibraDB Execution Engine Architecture Evolution and Optimization
Senior Tony
Senior Tony
Jul 10, 2024 · Databases

When to Use MySQL Hash Join vs. Nested Loop: A Practical Guide

This article explains MySQL's hash join algorithm, compares it with nested‑loop joins, shows how to read execution steps and EXPLAIN output, discusses extended hash‑join scenarios, and weighs the trade‑offs of performing multi‑table joins inside the database versus in application code.

Database OptimizationHash JoinJoin Algorithms
0 likes · 8 min read
When to Use MySQL Hash Join vs. Nested Loop: A Practical Guide
MaGe Linux Operations
MaGe Linux Operations
Feb 12, 2024 · Databases

Why Hash Join Beats Nested Loop Join and When It Fails

This article explains why hash joins usually outperform nested‑loop joins, how to force hash joins in SQL, the data‑type restrictions that prevent hash joins, and practical tips for optimizing join performance in TD and Oracle compatibility modes.

Data TypesHash JoinNested Loop
0 likes · 6 min read
Why Hash Join Beats Nested Loop Join and When It Fails
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 5, 2023 · Databases

Optimizing MySQL Join Queries: Algorithms, Execution Plans, and Practical Tips

This article explains the characteristics of various MySQL join algorithms—including Simple Nested‑Loop, Index Nested‑Loop, Block Nested‑Loop, Hash Join, and Batched Key Access—demonstrates how to examine execution plans, configure optimizer settings, and apply best‑practice optimizations such as indexing, choosing the small driver table, and upgrading MySQL versions.

BKADatabase PerformanceHash Join
0 likes · 12 min read
Optimizing MySQL Join Queries: Algorithms, Execution Plans, and Practical Tips
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 21, 2023 · Databases

MySQL 8.0 New Features: Performance, Security, Optimizer, and Other Enhancements

This article provides a comprehensive overview of MySQL 8.0 enhancements, covering performance improvements such as contention‑aware scheduling and hash joins, security upgrades including authentication plugins and password policies, optimizer refinements, and various other features like persistent variables, GIS support, and binlog expiration handling.

Hash JoinJSONReplication
0 likes · 16 min read
MySQL 8.0 New Features: Performance, Security, Optimizer, and Other Enhancements
vivo Internet Technology
vivo Internet Technology
Apr 13, 2022 · Big Data

Understanding Join Algorithms in Presto: Theory, Implementation, and Engineering Practices

The article explains Presto’s join processing by detailing the business need to limit multi‑table joins, then describing nested‑loop, sort‑merge, and hash join algorithms with Java examples, and finally showing how the Volcano model, columnar pages, and planner integration enable scalable, efficient OLAP join execution.

Big DataHash JoinJoin Algorithms
0 likes · 17 min read
Understanding Join Algorithms in Presto: Theory, Implementation, and Engineering Practices
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 3, 2020 · Databases

Is It Time to Upgrade to MySQL 8.0? – Highlights from the First Episode of “MySQL Chōng Chōng Chōng”

The first episode of the “MySQL Chōng Chōng Chōng” livestream discusses why now is an excellent time to upgrade to MySQL 8.0, covering fast add‑column, Atomic DDL, Hash Join, Group Replication, authentication changes, and includes thanks to sponsors and a preview of the next show.

Atomic DDLDatabase UpgradeFast Add Column
0 likes · 9 min read
Is It Time to Upgrade to MySQL 8.0? – Highlights from the First Episode of “MySQL Chōng Chōng Chōng”
Big Data Technology & Architecture
Big Data Technology & Architecture
Jan 15, 2020 · Databases

Understanding and Using Hash Join in MySQL 8.0

This article explains the concept of Hash Join in MySQL 8.0, compares it with Nested Loop joins, shows how to enable or force it with server variables or hints, and presents performance benchmarks that demonstrate its speed advantages on large datasets.

Hash JoinPerformance TestingSQL
0 likes · 12 min read
Understanding and Using Hash Join in MySQL 8.0
Java High-Performance Architecture
Java High-Performance Architecture
Nov 28, 2019 · Databases

How MySQL 8’s Hash Join Boosts Query Performance

Learn how MySQL 8’s hash join algorithm works by building an in‑memory hash table from the smaller table, probing the larger table for matches, and handling oversized tables through disk‑based chunk files, offering a more efficient alternative to traditional nested‑loop joins.

Hash JoinJoin AlgorithmsSQL
0 likes · 5 min read
How MySQL 8’s Hash Join Boosts Query Performance
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 19, 2019 · Databases

Understanding Hash Join in MySQL 8.0.18

This article explains how MySQL 8.0.18 introduces the hash join algorithm, describes its build and probe phases, disk‑overflow handling, usage instructions, optimizer switches, performance comparisons with block nested loops, and current limitations, providing code examples and practical guidance.

Hash JoinJoin AlgorithmsSQL
0 likes · 9 min read
Understanding Hash Join in MySQL 8.0.18
ITPUB
ITPUB
Sep 19, 2019 · Databases

Why Hash Join Beats Nested Loop in MySQL 8.0 – Faster Queries & New EXPLAIN ANALYZE

MySQL 8.0 introduces Hash Join for dramatically faster large‑dataset queries, supports in‑memory and spill‑to‑disk processing, can replace Block Nested‑Loop joins, and adds EXPLAIN ANALYZE with detailed runtime statistics and tree‑style output, highlighting the platform’s rapid evolution.

Database PerformanceEXPLAIN ANALYZEHash Join
0 likes · 3 min read
Why Hash Join Beats Nested Loop in MySQL 8.0 – Faster Queries & New EXPLAIN ANALYZE
ITPUB
ITPUB
Feb 17, 2017 · Databases

How to Speed Up SQL Server Paging with ROW_NUMBER, FORCESEEK and Hash Joins

This article explains why a SQL Server paging query using TOP can take minutes, demonstrates how switching to ROW_NUMBER() with CTEs, index hints, temporary tables, and hash joins dramatically reduces execution time, and provides practical tips for handling large page numbers.

CTEHash JoinIndex Hint
0 likes · 16 min read
How to Speed Up SQL Server Paging with ROW_NUMBER, FORCESEEK and Hash Joins
dbaplus Community
dbaplus Community
Apr 22, 2016 · Databases

Mastering Oracle Parallel Query: How It Works and When to Use It

This article explains Oracle's parallel query feature, covering its benefits, resource costs, required conditions, various data‑distribution methods such as broadcast, replicate and hash, how to read parallel execution plans, and practical monitoring techniques to avoid performance pitfalls.

Database PerformanceHash JoinOracle
0 likes · 31 min read
Mastering Oracle Parallel Query: How It Works and When to Use It