-
Notifications
You must be signed in to change notification settings - Fork 6
FAQ
rockeet edited this page Aug 23, 2018
·
6 revisions
The best workloads are random read heavy on text rich data, but still works pretty good on other workloads.
TerarkSQL uses MyRocks as the adapter layer.
TerarkSQL supports all the features that MyRocks has, and MyRocks also has some limits on MySQL(so does TerarkSQL).
Since TerarkSQL is using MyRocks, and MyRocks configurations are optimized for short transactions, and not for data loading.
MyRocks has a couple of special session variables to speed up data loading dramatically MyRocks Data Loading Details.
Here's the most important two variables:
SET session sql_log_bin=0; -- disable log
SET rocksdb_commit_in_the_middle=1; -- commit transaction every 1000(default value) inserts
set global rocksdb_compact_cf='default';