Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldb: set total_order_seek for scans #27

Merged
merged 1 commit into from
Mar 12, 2019
Merged

Conversation

ajkr
Copy link

@ajkr ajkr commented Mar 12, 2019

Without total_order_seek=true, using this command with
prefix_extractor set skips over lots of keys.

Test Plan: manually verified it returns all keys now


This change is Reviewable

Without `total_order_seek=true`, using this command with
`prefix_extractor` set skips over lots of keys.

Test Plan: manually verified it returns all keys now
@ajkr
Copy link
Author

ajkr commented Mar 12, 2019

upstream PR: facebook#5066

@ajkr ajkr merged commit 67cd77a into crl-release-5.17.2 Mar 12, 2019
ajkr added a commit to ajkr/cockroach that referenced this pull request Mar 12, 2019
@ajkr ajkr deleted the fix-ldb-scan-opts branch March 12, 2019 18:20
ajkr added a commit to ajkr/cockroach that referenced this pull request Apr 27, 2019
Includes the following changes, all of which have landed upstream.

- cockroachdb/rocksdb#27: "ldb: set `total_order_seek` for scans"
- cockroachdb/rocksdb#28: "Fix cockroachdb#3840: only `SyncClosedLogs` for multiple CFs"
- cockroachdb/rocksdb#29: "Optionally wait on bytes_per_sync to smooth I/O"
- cockroachdb/rocksdb#30: "Option string/map/file can set env from object registry"

Also made the RocksDB changes that we decided in cockroachdb#34897:

- Do not sync WAL before installing flush result. This is achieved by backporting cockroachdb/rocksdb#28; no configuration change is necessary.
- Do not sync WAL ever for temp stores. This is achieved by setting `wal_bytes_per_sync = 0`.
- Limit size of final syncs when generating SSTs. This is achieved by backporting cockroachdb/rocksdb#29 and turning it on with `strict_bytes_per_sync = true`.

Release note: None
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request Apr 27, 2019
37172: c-deps: bump rocksdb for multiple backported PRs r=ajkr a=ajkr

Includes the following changes, all of which have landed upstream.

- cockroachdb/rocksdb#27: "ldb: set `total_order_seek` for scans"
- cockroachdb/rocksdb#28: "Fix #3840: only `SyncClosedLogs` for multiple CFs"
- cockroachdb/rocksdb#29: "Optionally wait on bytes_per_sync to smooth I/O"
- cockroachdb/rocksdb#30: "Option string/map/file can set env from object registry"

Also made the RocksDB changes that we decided in #34897:

- Do not sync WAL before installing flush result. This is achieved by backporting cockroachdb/rocksdb#28; no configuration change is necessary.
- Do not sync WAL ever for temp stores. This is achieved by setting `wal_bytes_per_sync = 0`.
- Limit size of final syncs when generating SSTs. This is achieved by backporting cockroachdb/rocksdb#29 and turning it on with `strict_bytes_per_sync = true`.

Release note: None

Co-authored-by: Andrew Kryczka <[email protected]>
ajwerner pushed a commit to ajwerner/cockroach that referenced this pull request May 15, 2019
Includes the following changes, all of which have landed upstream.

- cockroachdb/rocksdb#27: "ldb: set `total_order_seek` for scans"
- cockroachdb/rocksdb#28: "Fix cockroachdb#3840: only `SyncClosedLogs` for multiple CFs"
- cockroachdb/rocksdb#29: "Optionally wait on bytes_per_sync to smooth I/O"
- cockroachdb/rocksdb#30: "Option string/map/file can set env from object registry"

Also made the RocksDB changes that we decided in cockroachdb#34897:

- Do not sync WAL before installing flush result. This is achieved by backporting cockroachdb/rocksdb#28; no configuration change is necessary.
- Do not sync WAL ever for temp stores. This is achieved by setting `wal_bytes_per_sync = 0`.
- Limit size of final syncs when generating SSTs. This is achieved by backporting cockroachdb/rocksdb#29 and turning it on with `strict_bytes_per_sync = true`.

Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants