COUNT
, SUM
, and AVG
. For instance, the following query tallies the total number of search results for a full text query.
max_worker_processes
, max_parallel_workers
, and max_parallel_workers_per_gather
should be set to 16.
postgresql.conf
changes to take effect.VACUUM
VACUUM
updates the table’s visibility map,
which speeds up Postgres’ visibility checks. Specifying INDEX_CLEANUP false
allows VACUUM
to run much
faster over large tables by skipping the cleanup of dead rows in the index.
VACUUM
.pg_prewarm
pg_prewarm
extension can be used to preload data from the index into the Postgres buffer cache, which
improves the response times of “cold” queries (i.e. the first search query after Postgres has restarted).
paradedb.schema
.
Expected Response
rating
is a fast
field, and COUNT(*)
does not specify any fields.
EXPLAIN
. Accelerated queries will show either a Custom Scan
or Parallel Index Only Scan
in the query plan.
Expected Response
description
is not accelerated.
EXPLAIN
on this query, we’ll see a regular Index Scan
, which indicates that no fast field optimization occurred.
Expected Response