7 Rules for Planning Your Queries for Maximum Performance
Blog post from ScyllaDB
ScyllaDB emphasizes optimizing query performance through a series of strategies, as discussed by Shlomi Livne at a ScyllaDB Summit. Livne, with a background in performance and integration from his previous role at Oracle, presented seven rules to enhance ScyllaDB query execution. Key strategies include using prepared statements to reduce repetitive work, enabling paging to manage large data sets efficiently, and selecting appropriate page sizes based on row size for optimal performance. Additionally, he advises caution with multi-partition CQL IN queries and suggests splitting them into single-partition queries for better latency. For full scans, leveraging token ownership and sharding can expedite processes by utilizing all machine cores in parallel. Finally, utilizing various tools such as probabilistic tracing and CQL tracing can aid in troubleshooting and benchmarking the performance of ScyllaDB queries.