Skip to content

Commit af51607

Browse files
authored
Optimize ScyllaDB usage (#3985)
## Motivation There are some optimization that we can do in how we're using ScyllaDB ## Proposal This PR removes the use of: * Non token aware queries * Unpaged queries * Most usages of `ALLOW FILTERING` (the ones remaining should be fine) * Non prepared statements Also: * Tuned page creation and other settings a bit * Some refactoring/code cleanup ## Test Plan CI + deployed a network, benchmarked it, and saw an over 10x decrease in ScyllaDB`s write latency ## Release Plan - Nothing to do / These changes follow the usual release cycle.
1 parent f59bf80 commit af51607

File tree

5 files changed

+319
-230
lines changed

5 files changed

+319
-230
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kubernetes/linera-validator/templates/scylla-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ metadata:
66
data:
77
scylla.yaml: |
88
query_tombstone_page_limit: 200000
9+
commitlog_segment_size_in_mb: 256

linera-views/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ aws-sdk-dynamodb = { workspace = true, optional = true }
3737
aws-smithy-types = { workspace = true, optional = true }
3838
bcs.workspace = true
3939
convert_case.workspace = true
40+
dashmap.workspace = true
4041
derive_more = { workspace = true, features = ["from"] }
4142
futures.workspace = true
4243
generic-array.workspace = true

0 commit comments

Comments
 (0)