This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Distinct storage and work controls share a finite bench while an obsolete mechanism remains covered.

MySQL Performance – Five Configuration Topics with Version Limits

August 10, 2021
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Memory, SQL Scripts

A MySQL Config File needs settings matched to its server version and workload. I measure pressure before changing a parameter.

Read More
A larger material cabinet shares finite workspace with a loom and other tools.

MySQL Performance – Slow Query and innodb_buffer_pool_size

August 9, 2021
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Memory, SQL Scripts

A small innodb_buffer_pool_size contributed to one customer slow MySQL query. The comparable SQL Server workload ran quickly.

Read More
Gouache painting of a crowded kitchen counter of vegetable bowls with an extra cart beside it, one bowl vermilion.

Internal Temporary Tables in MySQL: When a Query Spills to Disk

February 11, 2021
Pinal Dave
SQL Performance
MariaDB, MySQL, SQL Performance, SQL Scripts

MySQL and MariaDB build internal temporary tables behind your back for GROUP BY, DISTINCT, UNION and derived tables. This post counts them with status counters, reads them in EXPLAIN, shows what pushes one to disk, and removes one with an index.

Read More
A replacement shaping template is separate from a populated tray of retained tiles.

SQL SERVER – SQL_NO_CACHE and OPTION RECOMPILE Target Different Caches

April 6, 2020
Pinal Dave
SQL Tips and Tricks
MySQL, Query Hint, SQL Cache, SQL Scripts, SQL Server

OPTION (RECOMPILE) and SQL_NO_CACHE concern different cached objects. A banking customer using MySQL and SQL Server prompted my comparison.

Read More
Gouache painting of a brass balance scale weighing a wooden spoon against a vermilion weight, with mixing bowls behind it

Last Query Cost in MySQL: Read It With SHOW STATUS

February 20, 2020
Pinal Dave
SQL Tips and Tricks
Execution Plan, MySQL, SQL Scripts

The last query cost in MySQL is a number the optimizer computes for the last query it compiled, and SHOW STATUS LIKE ‘Last_query_cost’ returns it. This post shows the command on a Sakila query, explains what the number means and where it misleads. It also points to EXPLAIN FORMAT=JSON for the cost of each part of a plan.

Read More
The beginning of an ordered line of pebbles occupies a separate tray compartment

Retrieve TOP 10 Rows Without Using TOP or LIMIT? – Interview Question of the Week #247

October 20, 2019
Pinal Dave
SQL Interview Questions and Answers
MariaDB, MySQL, PostgreSQL, SQL Server

Question: Retrieve TOP 10 Rows Without Using TOP or LIMIT? We do not want to use TOP or LIMIT as they are actually not an ANSI implementation.

Read More
Gouache painting: a workshop shelf with a row of different small model engines: a little steam engine, a compact motor and a wind-up mechanism; one engine is painted vermilion

MariaDB – MySQL – Show Engines to Display All Available and Supported Engine

October 16, 2019
Pinal Dave
SQL Tips and Tricks
MariaDB, MySQL

I inspect each Supported Engine with SHOW ENGINES on MariaDB. A customer using MariaDB alongside SQL Server asked about this list.

Read More
Previous 1 2 3 4 5 … 12 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com