B
B
beduin012021-08-25 19:19:31
PostgreSQL
beduin01, 2021-08-25 19:19:31

What is the best type of index to choose for the following data?

I have a column with statuses: success, failed, pending.
Question - what type of an index it is better to select?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-08-25
@ky0

Can you imagine walking through a binary tree in which you need to select a third of the rows in the table? It will, of course, be faster than a full scan - but there will be much more benefit from an index on some more distinct field or combination of fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question