db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Statistics on a boolean function

lab.small(y) is true for 1 percent of 10000 rows. Without statistics the planner guesses 1/3 of the table.

task

Create expression statistics on lab.small(y), ANALYZE, and bring the estimate below 1000 rows.

hints