The LIKE operator caches the compiled regular expression in expression tree and then continues to use it even if the input argument has changed. This affects PREPARED statements.
Attachments
Issue Links
is caused by
MB-40648LIKE with query parameters 4x slow vs inline
The LIKE operator caches the compiled regular expression and then blindly uses it even if the input argument has changed. This affects PREPARED statements.
The LIKE operator caches the compiled regular expression in expression tree and then blindly uses it even if the input argument has changed. This affects PREPARED.
The LIKE operator caches the compiled regular expression in expression tree and then blindly uses it even if the input argument has changed. This affects PREPARED.
The LIKE operator caches the compiled regular expression in expression tree and then blindly uses it even if the input argument has changed. This affects PREPARED statements.
Build couchbase-server-7.0.0-4483 contains query commit 1aaca7b with commit message: MB-44354 note LIKE pattern and validate it is unchanged before using cached compiled regular expression
Couchbase Build Team
added a comment - Build couchbase-server-7.0.0-4483 contains query commit 1aaca7b with commit message:
MB-44354 note LIKE pattern and validate it is unchanged before using cached compiled regular expression
Build couchbase-server-6.6.2-9515 contains query commit 87f8726 with commit message: MB-44354 note LIKE pattern and validate it is unchanged before using cached compiled regular expression
Couchbase Build Team
added a comment - Build couchbase-server-6.6.2-9515 contains query commit 87f8726 with commit message:
MB-44354 note LIKE pattern and validate it is unchanged before using cached compiled regular expression
Donald Haggart / Pierre Regazzoni We would like this to be in the Release Notes for 6.6.2, can you please provide the summary?
Chris Malarky
added a comment - Donald Haggart / Pierre Regazzoni We would like this to be in the Release Notes for 6.6.2, can you please provide the summary?
LIKE patterns are compiled and cached to avoid recompiling unnecessarily. This fix addresses a problem where a previously cached compiled pattern that did not match the active pattern was used by prepared statements.
Or alternatively:
This fix addresses a bug where prepared statements failed to observe changes to LIKE predicate patterns.
Donald Haggart
added a comment - Chris Malarky , my summary would be:
LIKE patterns are compiled and cached to avoid recompiling unnecessarily. This fix addresses a problem where a previously cached compiled pattern that did not match the active pattern was used by prepared statements.
Or alternatively:
This fix addresses a bug where prepared statements failed to observe changes to LIKE predicate patterns.
The LIKE operator caches the compiled regular expression in expression tree and then blindly uses it even if the input argument has changed. This affects PREPARED statements.
The LIKE operator caches the compiled regular expression in expression tree and then continues to use it even if the input argument has changed. This affects PREPARED statements.
Build couchbase-server-7.0.0-4483 contains query commit 1aaca7b with commit message:
MB-44354note LIKE pattern and validate it is unchanged before using cached compiled regular expression