Why is the First Execution of a Query Slow, but Subsequent Executions Much Faster?

(Doc ID 2316255.1)

Last updated on OCTOBER 10, 2017

Applies to:

MySQL Server - Version 5.0 and later
Information in this document applies to any platform.

Goal

Understand why the first execution of a query can be slower than subsequent executions of the same query possibly with a slightly different WHERE clause.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms