storj/storage/cockroachkv
Jeff Wendling efa08d4081 storage/cockroachkv: use different batch size for recursive iteration
the relatively small batch size of 128 was chosen so that if we have
a set of keys like

    a/1
    a/2
    ...
    a/100000
    b
    c

list operations would not have to walk 100k keys inside of a/ before
skipping to b. unfortunately, iteration is also used by the metainfo
loop. in that case, it's doing a recursive listing, and so there's
no need to skip large prefixes. thus, we can use a bigger batch
size when recursive listing is requested.

Change-Id: I87cf1ba385b6eb2928c5b7cc5e0f7a8c7bd126d9
2019-12-17 18:24:26 +00:00
..
schema storj-sim: work with cockroach:// urls for satellite databases 2019-12-09 23:44:00 +00:00
client_test.go satellite/metainfo: Use cockroachdb client for metainfo db 2019-12-05 10:33:54 -07:00
client.go storage/cockroachkv: use different batch size for recursive iteration 2019-12-17 18:24:26 +00:00
common.go storage/cockroachkv: initial client implementation 2019-12-05 16:11:23 +00:00
ordered_iterator.go satellite/metainfo: Use cockroachdb client for metainfo db 2019-12-05 10:33:54 -07:00