B
B
BulatDos2016-09-29 13:47:08
PostgreSQL
BulatDos, 2016-09-29 13:47:08

Is there a way to exclude fields from a search in PostgreSQL?

There is a large database in many tables of records over a million, when searching and fetching data, the DBMS still goes through all the records.
Please tell me, is there a way to exclude old or currently irrelevant records from the search so that even select is not performed on them?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2016-09-29
@romy4

WHERE clause?

S
sim3x, 2016-09-29
@sim3x

Optimize postgres settings
Simultaneously do explain
Then optimize the current query and index
If not enough, make the field is_searchable = boolean and add it to your queries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question