Optimization of Large Inlists / Multiple OR Conditions
(Doc ID 62153.1)
Last updated on NOVEMBER 20, 2023
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
This document discusses the use of large IN lists and multiple OR statements in queries.
There is no strict definition of a 'large' inlist, but as soon as a query becomes unmanageable (either at parse or execution time) due to the size of the list, it may be time to think about the validity of it. Anything above 10 values would tend to imply that perhaps an object is missing from the database (see below).
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!