What is the word that means a query predicate can use an index

All we need is an easy explanation of the problem, so here it is.

I remember reading in a paper a word that means “query predicate can be evaluated using an index” but I can’t recall the word. For example if you had a table with a column called “name” and you had an index on name, then a query that had a WHERE clause involving “name” could be succinctly described by this word as “An X-able query”, where X is the word I don’t remember.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

The word you’re looking for is "SARGable". From Wikipedia:

In relational databases, a condition (or predicate) in a query is said
to be sargable if the DBMS engine can take advantage of an index to
speed up the execution of the query. The term is derived from a
contraction of Search ARGument ABLE.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply