-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of IntentAwareIterator
Summary: Improve IntentAwareIterator's performance in CassandraPersonalization read workload (range-scan) by about 14% by the following: - Reuse seek key buffer in GetSubDocument(). - Avoid redundant IntentAwareIterator::SkipFutureRecords under IntentAwareIteratorPrefixScope from GetSubDocument(). Test Plan: Before: ``` > java -jar ~/code/yugabyte/java/yb-loadtester/target/yb-sample-apps.jar -workload CassandraPersonalization -nodes 127.0.0.1:9042 -nouuid -max_written_key 10 -read_only -num_threads_write 0 -num_threads_read 1 2018-04-05 22:00:47,113 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 35.57 ops/sec (28.20 ms/op), 1070 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 30025 ms | maxWrittenKey: 10 | maxGeneratedKey: 10 | 2018-04-05 22:00:52,119 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 35.16 ops/sec (28.31 ms/op), 1246 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 35031 ms | maxWrittenKey: 10 | maxGeneratedKey: 10 | 2018-04-05 22:00:57,123 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 35.17 ops/sec (28.50 ms/op), 1422 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 40035 ms | maxWrittenKey: 10 | maxGeneratedKey: 10 | ``` After: ``` 2018-04-05 22:08:28,063 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 40.77 ops/sec (24.62 ms/op), 1227 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 30014 ms | maxWrittenKey: 10 | maxGeneratedKey: 10 | 2018-04-05 22:08:33,067 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 40.56 ops/sec (24.63 ms/op), 1430 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 35018 ms | maxWrittenKey: 10 | maxGeneratedKey: 10 | 2018-04-05 22:08:38,072 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 40.36 ops/sec (24.73 ms/op), 1632 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 40023 ms | maxWrittenKey: 10 | maxGeneratedKey: 10 | ``` Reviewers: mikhail, sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D4588
- Loading branch information
1 parent
7020d08
commit 158def7
Showing
7 changed files
with
87 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters