v1

latestOpenAPI 3.0.3GPL-3.02026-07-177978150.2 KB
operations

Compacting the on-disk database

Typesense uses RocksDB to store your documents on the disk. If you do frequent writes or updates, you could benefit from running a compaction of the underlying RocksDB database. This could reduce the size of the database and decrease read latency. While the database will not block during this operation, we recommend running it during off-peak hours.

post/operations/db/compact

Response

Compacting the on-disk database succeeded.

successboolean required