My Oracle Support Banner

A Query That Refers to User Variables is Very Slower Than Expected (Doc ID 2953205.1)

Last updated on JUNE 02, 2023

Applies to:

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

Symptoms

Issue Clarification
--------------------------
When substituting a string constant with a @user variable containing the same string, in a particular query, the query becomes magnitudes slower.

Changes

 User variables are used in place of string constants.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.