-
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.
Fixes #469: Optimize QLResultSet to serialize rows results directly
Summary: Optimize QLResultSet by avoiding memory allocation and copying of rows by serializing the rows directly. This improves CassandraPersonalization read workload which does range scan by 10%. Test Plan: Load data: $ java -jar ~/code/yugabyte/java/yb-loadtester/target/yb-sample-apps.jar -workload CassandraPersonalization -num_threads_read 0 -num_threads_write 1 -num_new_coupons_per_customer 3000 -nodes 127.0.0.1:9042 -nouuid -num_unique_keys 300 Read test: $ java -jar ~/code/yugabyte/java/yb-loadtester/target/yb-sample-apps.jar -workload CassandraPersonalization -nodes 127.0.0.1:9042 -nouuid -max_written_key 300 -read_only -num_threads_write 0 -num_threads_read 1 Before: ``` 2018-09-12 11:22:56,052 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 42.17 ops/sec (23.69 ms/op), 2129 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 50030 ms | maxWrittenKey: 300 | maxGeneratedKey: 300 | 2018-09-12 11:23:01,056 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 41.96 ops/sec (23.79 ms/op), 2339 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 55034 ms | maxWrittenKey: 300 | maxGeneratedKey: 300 | 2018-09-12 11:23:06,059 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 42.78 ops/sec (23.40 ms/op), 2553 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 60037 ms | maxWrittenKey: 300 | maxGeneratedKey: 300 | ``` After: ``` 2018-09-12 11:24:28,430 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 46.56 ops/sec (21.50 ms/op), 2310 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 50026 ms | maxWrittenKey: 300 | maxGeneratedKey: 300 | 2018-09-12 11:24:33,432 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 46.37 ops/sec (21.53 ms/op), 2542 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 55028 ms | maxWrittenKey: 300 | maxGeneratedKey: 300 | 2018-09-12 11:24:38,435 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 46.57 ops/sec (21.49 ms/op), 2775 total ops | Write: 0.00 ops/sec (0.00 ms/op), 0 total ops | Uptime: 60031 ms | maxWrittenKey: 300 | maxGeneratedKey: 300 | ``` Reviewers: mihnea Reviewed By: mihnea Subscribers: yql Differential Revision: https://phabricator.dev.yugabyte.com/D5465
- Loading branch information
1 parent
3735763
commit afef8f2
Showing
7 changed files
with
65 additions
and
116 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