Performance considerationsΒΆ
Follow these tips to use CrateDB optimally for maximum performance.
Optimization |
Description |
Documentation |
|---|---|---|
Leverage indexes |
Important for frequently grouped or filtered fields. |
|
Avoid SELECT * |
Select only the fields you need. |
|
Use targeted filters |
Narrow your search using |
|
Pre-aggregate |
Maintain rollup tables for common queries; use views as convenient wrappers (views are virtual, not precomputed). |
|
Use |
Apply time-based bucketing on time series data to reduce data volume. |
DATE_BIN() |
Profile queries |
Use |
|
Sizing & sharding |
Choose partitioning and shard size wisely (e.g., daily partitions for time-based data). |
Important
For in-depth details about performance aspects, please head over to the Performance guides.