Tagged articles
40 articles
Page 1 of 1
Senior Tony
Senior Tony
Mar 26, 2026 · Databases

Why MySQL Optimizer Picks the Wrong Index and How to Fix It

The MySQL optimizer can select an inappropriate index due to inaccurate statistics or sampling errors, but you can correct this by refreshing statistics with ANALYZE TABLE, increasing sample pages, or explicitly forcing the right index using the FORCE INDEX hint.

ANALYZE TABLEDatabase PerformanceFORCE INDEX
0 likes · 4 min read
Why MySQL Optimizer Picks the Wrong Index and How to Fix It
Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
Feb 23, 2026 · Artificial Intelligence

System Engineering Behind Billions of Parameters: Insider Training Details from Seven Top AI Labs

This article systematically dissects the engineering decisions behind frontier large‑language‑model training—covering architecture choices, attention variants, optimizer evolution, data‑curation strategies, scaling‑law insights, and post‑training SFT/RL pipelines—based on open‑source reports from seven leading AI laboratories.

Mixture of ExpertsModel Traininglarge language models
0 likes · 26 min read
System Engineering Behind Billions of Parameters: Insider Training Details from Seven Top AI Labs
AI2ML AI to Machine Learning
AI2ML AI to Machine Learning
Oct 19, 2025 · Artificial Intelligence

Deep Dive into nanochat: Source Code, Model Size Calculations, and Optimization Techniques

This article provides a thorough analysis of nanochat’s source code, detailing transformer component differences, precise parameter‑size formulas, FlashNorm and ReLU² innovations, scaling‑law insights, memory‑usage estimations, and the distributed optimizer and training pipelines used to build the model.

Distributed TrainingLLMTransformer
0 likes · 20 min read
Deep Dive into nanochat: Source Code, Model Size Calculations, and Optimization Techniques
ITPUB
ITPUB
Jun 28, 2025 · Databases

How Oracle Executes a SQL Statement: From Parsing to Optimizer

This article explains Oracle's step‑by‑step processing of a SQL statement—including the client submission, parsing checks, optimizer decision‑making, row‑source generation, and final execution—while illustrating hard and soft parses, optimizer components, and practical query‑plan queries.

OracleSQLdatabase
0 likes · 25 min read
How Oracle Executes a SQL Statement: From Parsing to Optimizer
AI Algorithm Path
AI Algorithm Path
Mar 16, 2025 · Artificial Intelligence

How to Train PyTorch Models Using Far Less GPU Memory

This article walks through a suite of PyTorch techniques—including automatic mixed precision, BF16, gradient checkpointing, gradient accumulation, tensor sharding, efficient data loading, in‑place ops, lightweight optimizers, memory profiling, TorchScript, and kernel fusion—that together can cut peak GPU memory usage by up to twenty‑fold while preserving model accuracy.

GPU MemoryPyTorchdata loading
0 likes · 13 min read
How to Train PyTorch Models Using Far Less GPU Memory
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 DataSpark SQLoptimizer
0 likes · 12 min read
Principles and Common Optimization Techniques of the Spark SQL Optimizer
JavaEdge
JavaEdge
Feb 23, 2025 · Artificial Intelligence

How Java Developers Can Build Neural Networks with PyTorch: A Step‑by‑Step Guide

This tutorial walks Java developers through the complete workflow of building, training, and evaluating a neural network in PyTorch, covering network definition, data iteration, forward and backward passes, loss calculation, and parameter updates with detailed code examples and Java‑centric analogies.

BackpropagationDeep LearningJava
0 likes · 12 min read
How Java Developers Can Build Neural Networks with PyTorch: A Step‑by‑Step Guide
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
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 ExecutionSQL
0 likes · 10 min read
How MySQL Executes a SELECT Query: From Connection to Result
ITPUB
ITPUB
Apr 29, 2023 · Backend Development

When Multiple Indexes Meet: How MySQL’s Index Merge Optimizer Works

This article explains how MySQL handles queries that involve two separate indexed columns, demonstrates the index_merge execution plan with real‑world examples, details the three index‑merge strategies (intersect, union, sort_union), and shows how to control or disable the feature for better performance.

SQLmysqloptimizer
0 likes · 11 min read
When Multiple Indexes Meet: How MySQL’s Index Merge Optimizer Works
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
DataFunSummit
DataFunSummit
Feb 14, 2023 · Artificial Intelligence

Deep Learning Hyperparameter Tuning and Training Tips: Insights from Zhihu Experts

This article compiles practical deep learning training and hyperparameter tuning advice from Zhihu contributors, covering model debugging, learning‑rate strategies, optimizer choices, data preprocessing, regularization techniques, initialization methods, common pitfalls, recommended research papers, and ensemble approaches.

Deep LearningRegularizationgradient clipping
0 likes · 13 min read
Deep Learning Hyperparameter Tuning and Training Tips: Insights from Zhihu Experts
Liangxu Linux
Liangxu Linux
Aug 15, 2022 · Databases

Why MySQL Picks a Full Table Scan Over an Index with ORDER BY id LIMIT 1

A MySQL 5.6+ optimizer bug causes queries that filter by uid and order by id with a small LIMIT to use a costly full table scan instead of the appropriate idx_uid_stat index, and the article explains the root cause, shows optimizer_trace output, and offers two practical work‑arounds.

FORCE INDEXFull Table ScanOptimizer_trace
0 likes · 8 min read
Why MySQL Picks a Full Table Scan Over an Index with ORDER BY id LIMIT 1
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 1, 2022 · Databases

MySQL SELECT Query Crash Analysis and Resolution

This article investigates a MySQL crash triggered by a specific SELECT statement, analyzes the stack trace and optimizer behavior that leads to an invalid memory access, and presents three practical solutions including disabling DuplicateWeedout, upgrading MySQL, and normalizing table character sets.

CrashDuplicateWeedoutbug
0 likes · 7 min read
MySQL SELECT Query Crash Analysis and Resolution
dbaplus Community
dbaplus Community
Jul 20, 2022 · Databases

From Middleware to Distributed Database: The Evolution of PolarDB‑X

PolarDB‑X evolved from Alibaba’s internal sharding middleware TDDL to the DRDS cloud service and finally to a fully distributed MySQL‑compatible database, introducing a full SQL optimizer, MPP engine, global secondary indexes, strong‑consistent distributed transactions via TSO + 2PC, and full binlog compatibility.

MySQL compatibilityPolarDB-Xglobal index
0 likes · 26 min read
From Middleware to Distributed Database: The Evolution of PolarDB‑X
JavaEdge
JavaEdge
Jan 26, 2022 · Databases

Inside MySQL: How the Server Handles Queries from Connection to Storage Engine

This article explains MySQL's client‑server architecture, detailing how the server processes connections, parses and optimizes queries, generates execution plans, and interacts with various storage engines, while also covering configuration variables, connection monitoring, and practical command examples.

Query ProcessingStorage Enginemysql
0 likes · 21 min read
Inside MySQL: How the Server Handles Queries from Connection to Storage Engine
Python Programming Learning Circle
Python Programming Learning Circle
Jan 11, 2022 · Artificial Intelligence

Dynamic Learning Rate Adjustment in PyTorch: Optimizer Basics and Scheduler Usage

This article explains how to configure and use PyTorch optimizers, their attributes and methods, and demonstrates various learning‑rate scheduling techniques—including manual updates and built‑in schedulers such as LambdaLR, StepLR, MultiStepLR, ExponentialLR, CosineAnnealingLR, and ReduceLROnPlateau—through clear code examples.

Deep LearningPyTorchScheduler
0 likes · 14 min read
Dynamic Learning Rate Adjustment in PyTorch: Optimizer Basics and Scheduler Usage
Java Backend Technology
Java Backend Technology
Sep 30, 2021 · Databases

Why MySQL Picks Full Table Scan Over Index with ORDER BY id LIMIT 1

The article examines a MySQL optimizer bug where a query with a WHERE clause on uid, ORDER BY id ASC, and LIMIT 1 incorrectly triggers a full table scan despite a usable composite index, explains the optimizer’s cost calculations, and offers workarounds such as FORCE INDEX or a harmless arithmetic trick to force index usage.

Full Table ScanSQLindex
0 likes · 8 min read
Why MySQL Picks Full Table Scan Over Index with ORDER BY id LIMIT 1
Tencent Cloud Developer
Tencent Cloud Developer
Sep 29, 2021 · Fundamentals

Building a Simple LLVM-Based Compiler: Lexer, Parser, SSA, Optimizer, JIT and Mutable Variables

The tutorial walks through building a complete LLVM‑based Kaleidoscope compiler—from a tokenizing lexer and recursive‑descent parser, through AST construction, LLVM IR generation with SSA and phi nodes, optimization passes, JIT execution, and mutable variable handling via stack allocation—providing full C++ source examples.

Code GenerationJITKaleidoscope
0 likes · 47 min read
Building a Simple LLVM-Based Compiler: Lexer, Parser, SSA, Optimizer, JIT and Mutable Variables
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 ScanSQLmysql
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
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
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
Liangxu Linux
Liangxu Linux
Apr 26, 2021 · Databases

Master MySQL Internals: Query Cache, Indexes, Optimizer & Transaction Logs

This article explains MySQL's query cache settings, clustered and non‑clustered index design, optimizer cost calculations, how to interpret EXPLAIN output, and the roles of redo/undo logs and transaction isolation levels, providing practical examples and performance tips.

Isolation LevelsTransaction Logsindexes
0 likes · 23 min read
Master MySQL Internals: Query Cache, Indexes, Optimizer & Transaction Logs
Architecture Digest
Architecture Digest
Sep 13, 2020 · Databases

MySQL 8.0 Version History and New Features

An overview of MySQL 8.0’s release timeline, including major GA versions, and a detailed summary of its new capabilities such as transactional data dictionary, atomic DDL, enhanced security, role support, InnoDB improvements, JSON enhancements, optimizer extensions, backup lock, connection management, and other performance and management features.

8.0InnoDBSecurity
0 likes · 10 min read
MySQL 8.0 Version History and New Features
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 23, 2019 · Databases

MySQL 8.0.17 Release Highlights: Cloning, JSON Multi‑Value Indexes, Optimizer Improvements, and More

MySQL 8.0.17 introduces server cloning via MySQL Shell, multi‑value indexes for JSON arrays, enhanced JSON schema validation, optimizer and Volcano iterator upgrades, new collations, replication and routing enhancements, plus numerous bug fixes and deprecations, all detailed in the official release notes.

JSON IndexRelease NotesReplication
0 likes · 8 min read
MySQL 8.0.17 Release Highlights: Cloning, JSON Multi‑Value Indexes, Optimizer Improvements, and More
dbaplus Community
dbaplus Community
Nov 12, 2018 · Databases

Unlocking MySQL 8.0 Optimizer: Cost Model Configuration and Histogram Usage

This article explains how MySQL 8.0 improves the optimizer by introducing configurable cost model constants and a histogram feature, showing how to query and update system tables, use ANALYZE TABLE to create and manage histograms, and explore the underlying code structures and future tuning possibilities.

Cost ModelHistogramdatabase
0 likes · 19 min read
Unlocking MySQL 8.0 Optimizer: Cost Model Configuration and Histogram Usage
Efficient Ops
Efficient Ops
Oct 10, 2018 · Databases

Boost Your Database Reliability with Xiaomi’s Open‑Source SQL Optimizer SOAR

Xiaomi is open‑sourcing its Go‑based SQL Optimizer and Rewriter (SOAR) at OSCAR Days, a tool that automatically checks SQL quality, suggests index improvements, rewrites queries, provides EXPLAIN analysis, and integrates with editor plugins and a web self‑audit platform to boost database reliability and developer productivity.

GoSQLopen-source
0 likes · 5 min read
Boost Your Database Reliability with Xiaomi’s Open‑Source SQL Optimizer SOAR
Qunar Tech Salon
Qunar Tech Salon
Aug 16, 2017 · Artificial Intelligence

Applying Wide & Deep Learning to Meituan‑Dianping Recommendation System

This article describes how Meituan‑Dianping leverages deep learning, especially the Wide & Deep model, to improve its recommendation system by addressing business diversity, user context, feature engineering challenges, optimizer and loss function choices, and presents offline and online experimental results showing significant CTR gains.

CTRDeep LearningWide&Deep
0 likes · 22 min read
Applying Wide & Deep Learning to Meituan‑Dianping Recommendation System
Java High-Performance Architecture
Java High-Performance Architecture
Feb 7, 2017 · Databases

New MySQL Features: Data Dictionary, InnoDB, JSON, and Optimizer Boosts

The latest MySQL release introduces a transactional data dictionary, role‑based account permission management, multiple InnoDB enhancements—including stable auto‑increment counters, memcached multi‑key support, dynamic deadlock detection, shared temporary tables, and NOWAIT/SKIP LOCKED options—plus advanced JSON operators, aggregation functions, pretty‑print utility, and optimizer features such as hidden and descending indexes.

InnoDBJSONRoles
0 likes · 4 min read
New MySQL Features: Data Dictionary, InnoDB, JSON, and Optimizer Boosts
ITPUB
ITPUB
Nov 3, 2016 · Databases

Mastering Oracle Optimizer Statistics: When and How to Collect Them

This guide explains the role of optimizer statistics in Oracle, when to gather them, how to use automatic and manual collection jobs, tune ESTIMATE_PERCENT and METHOD_OPT, manage histograms, handle bind peeking, apply dynamic sampling, and safely test changes with pending statistics.

DBMS_STATSDynamic SamplingESTIMATE_PERCENT
0 likes · 20 min read
Mastering Oracle Optimizer Statistics: When and How to Collect Them
dbaplus Community
dbaplus Community
Oct 20, 2016 · Databases

Inside MySQL 8.0: New Features, Community Insights, and Future Roadmap

The article recaps a MySQL 8.0 optimizer meetup where experts discussed version naming, enterprise vs community edition differences, character‑set choices, storage‑engine evolution, hint usage, sharding strategies, high‑availability architectures, market position, and upcoming feature requests from the community.

8.0HintsJSON
0 likes · 13 min read
Inside MySQL 8.0: New Features, Community Insights, and Future Roadmap