buildIndexesInBackground
Covers whatever the sidecars do not, on that same thread, returning at once.
The partner of RaboshOptions.backfill being false: open without paying for a scan, then converge without holding anybody up.
Rabosh.open(directory, RaboshOptions(backfill = false)).use { db ->
val build = db.buildIndexesInBackground()
…
build.await()
}Content copied to clipboard
Only the indexes. The schema catalog has no background pass, so a store opened with backfill = false still has an incomplete model until attach runs — which is why this is a method rather than a third value of that option, where it would have promised something one of the two layers cannot do.
Throws
if RaboshOptions.indexes is false.