Optimizing Top K in Postgres
paradedb.com
Optimizing Top K in Postgres
1–10 of 26 posts
Re: Optimizing Top K in Postgres
#2Re: Optimizing Top K in Postgres
#3Re: Optimizing Top K in Postgres
#4Re: Optimizing Top K in Postgres
#5The "But Wait, We Need Filters Too" paragraph mentions "US" filter which is introduced only later on.
Re: Optimizing Top K in Postgres
#6SELECT * FROM benchmark_logs WHERE severity this index
CREATE INDEX ON benchmark_logs (severity, timestamp);
cannot be used as proposed: "Postgres can jump directly to the portion of the tree matching severity Postgres with this index can walk to a part of the tree with severity < 3, but timestamps are sorted only for the same severity.
Re: Optimizing Top K in Postgres
#7Re: Optimizing Top K in Postgres
#8Maybe I'm wrong, but for this query: SELECT * FROM benchmark_logs WHERE severity this index CREATE INDEX ON benchmark_logs (severity, timestamp); cannot be used as proposed: "Postgres can jump directly to the portion of the tree matching severity Postgres with this index can walk to a part of the tree with severity < 3, but timestamps are sorted only for the same severity.
Re: Optimizing Top K in Postgres
#9Every time I've used Lucene I have combined it with a SQL provider. It's not necessarily about one or the other. The FTS facilities within the various SQL providers are convenient, but not as capable by comparison. I don't think mixing these into the same thing makes sense. They are two very different animals that are better joined by way of the document ids.