FoundationDB / fdb-record-layer

A record-oriented store built on FoundationDB
Apache License 2.0
588 stars 102 forks source link

Index scrubber could enforce early transaction commit #2787

Closed alecgrieser closed 3 months ago

alecgrieser commented 3 months ago

The indexing scrubber currently doesn't allow the user to specify that it should enforce early committing a transaction early. The index builder has a configuration option.setTransactionTimeLimitMillis, which lets the user specify a number of milliseconds after which it will commit a transaction. This is to avoid hitting the 5 second transaction time limit, and it defaults to 4 seconds. The index scrubber should be able to do the same thing.