PUBLIC-INBOX-XCPDB(1) | public-inbox user manual | PUBLIC-INBOX-XCPDB(1) |
public-inbox-xcpdb - upgrade Xapian DB formats
public-inbox-xcpdb [OPTIONS] INBOX_DIR
public-inbox-xcpdb [OPTIONS] --all
public-inbox-xcpdb is similar to copydatabase(1) for upgrading to the latest database format supported by Xapian (e.g. "glass" or "honey"), but is designed to tolerate and accept parallel Xapian database modifications from public-inbox-watch(1), public-inbox-mda(1), public-inbox-learn(1), and public-inbox-index(1).
This command is rarely used, as Xapian DB formats rarely change.
Compared to public-inbox-compact(1), use of this option is preferable for gigantic inboxes where the coarse-grained lock currently required for public-inbox-compact(1) can cause the compaction to take hours at-a-time.
This is useful in case the Xapian DB was created with too few or too many shards given the capabilities of the current hardware.
Available in public-inbox 1.6.0+.
These indexing options indexing at the end of a run. "public-inbox-xcpdb" may run in parallel with with public-inbox-index(1), and "public-inbox-xcpdb" needs to reindex changes made to the old Xapian DBs by public-inbox-index(1) while it was running.
Default: 10000
This tool is intended for admins upgrading Xapian search databases used by public-inbox, NOT users upgrading public-inbox itself.
In particular, it DOES NOT upgrade the schema used by the PSGI search interface (see public-inbox-index(1)).
Do not use public-inbox-purge(1) or public-inbox-edit(1) while this is running; old (purged or edited data) may show up.
Normal invocations public-inbox-index(1) can safely run while this is running, too. However, reindexing via the "--reindex" in public-inbox-index(1) switch will be a waste of computing resources.
Feedback welcome via plain-text mail to <mailto:meta@public-inbox.org>
The mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
Copyright 2019-2021 all contributors <mailto:meta@public-inbox.org>
License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
1993-10-02 | public-inbox.git |