Index Tuning
Overview
To give database administrators fine-grained control over resource consumption, the BM25 index only uses as much memory and CPUs as allowed by the index’s settings. Several of these settings
match Postgres’ postgresql.conf
settings, which are quite conservative by default. Adjusting these settings allows ParadeDB to take advantage of the server’s hardware and is
strongly recommended.
Types of Settings
The BM25 index’s settings fall into one of two categories: Postgres settings and ParadeDB-specific settings.
Postgres Settings
A Postgres setting can be found in the postgresql.conf
file, which can be located with SHOW
.
These settings can be changed in two ways:
- By editing the
postgresql.conf
file and restarting Postgres. This makes the setting permanent for all sessions. - By running
SET
. This temporarily changes the setting for the current session. Note that Postgres does not allow allpostgresql.conf
settings to be changed withSET
.
ParadeDB Settings
A ParadeDB setting begins with paradedb.
and applies only to the current session. For instance:
Was this page helpful?