Reclaim free SQLite pages in short transactions. Pass work to the janitor so the gateway can start without waiting for the reclaim.
Reclaim free SQLite pages in short transactions. Pass work to the janitor so the gateway can start without waiting for the reclaim.
(free-space ds){:auto-vacuum :page-size :page-count :freelist-count :file-bytes :free-bytes}
as SQLite itself reports it — :auto-vacuum is 0 (NONE) or 2 (INCREMENTAL),
:file-bytes is the live file, :free-bytes what a vacuum would give back.
`{:auto-vacuum :page-size :page-count :freelist-count :file-bytes :free-bytes}`
as SQLite itself reports it — `:auto-vacuum` is 0 (NONE) or 2 (INCREMENTAL),
`:file-bytes` is the live file, `:free-bytes` what a vacuum would give back.(maybe-vacuum! ds db-file)(maybe-vacuum! ds db-file {:keys [min-free-bytes slice-ms open?]})Give back unused pages in short slices. Retry a busy WAL checkpoint on the janitor.
Give back unused pages in short slices. Retry a busy WAL checkpoint on the janitor.
(vacuum-async! ds db-file)(vacuum-async! ds db-file {:keys [delay-ms] :as opts})Schedule the reclaim after the store opens. Stop when open? is false.
Schedule the reclaim after the store opens. Stop when `open?` is false.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |