You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
JDBC queries use is_deleted <> 'Y' to filter out resources which have been marked as deleted. Although only one row needs to be logically checked (the current resource), the optimizer might try to access this first and therefore require scan multiple rows when only one will match. Using is_deleted = 'N' is a better strategy should there be a suitable index available.
The text was updated successfully, but these errors were encountered:
punktilious
changed the title
Queries use is_deleted <> 'Y' but is_deleted = 'N' might offer better execution plans
Queries use is_deleted <> 'Y' but is_deleted = 'N' might support better execution plans
Oct 29, 2020
Describe the bug
JDBC queries use is_deleted <> 'Y' to filter out resources which have been marked as deleted. Although only one row needs to be logically checked (the current resource), the optimizer might try to access this first and therefore require scan multiple rows when only one will match. Using is_deleted = 'N' is a better strategy should there be a suitable index available.
The text was updated successfully, but these errors were encountered: