$ open source · GPL-3.0 — need a commercial license? imqueue.com →

ColumnIndexOptions.safe property

Leaves an index that already exists alone rather than rebuilding it.

Signature:

safe: boolean;

Remarks

Turns the pass into CREATE INDEX IF NOT EXISTS with no drop in front of it, so an existing index survives even if its declaration has changed since. The default rebuilds on every sync, which is always correct and always costs a full build.