Statistics target
The statistics target sets how many values and histogram buckets ANALYZE keeps for a column (default 100). Skewed columns may need more.
task
Raise the statistics target of readings.device_id to 1000 and ANALYZE.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
The statistics target sets how many values and histogram buckets ANALYZE keeps for a column (default 100). Skewed columns may need more.
Raise the statistics target of readings.device_id to 1000 and ANALYZE.