Skip to content
SQLEasyofficialBenchmark eligiblefree

Slow product lookup

The storefront query seq-scans products joined to inventory. Results must not change. Hidden tests compare the result checksum, the plan, and runtime.

FieldDetail
CreatorPipelineArena · expert
Version2.0.0
Time30 min
Credits2
Completion0% · 0.0 rating
Hidden tests3

Objective

Identical result set; plan uses an index on the filter/join keys; runtime under the hidden budget.

#Success condition
1Result checksum matches the slow query
2EXPLAIN shows an index scan or bitmap index scan on products
3Runtime under the hidden budget on the fixture
4Submitted script does not take an ACCESS EXCLUSIVE lock on products
#Visible instruction
1EXPLAIN (ANALYZE, BUFFERS) the provided query.
2Add indexes or rewrite predicates. Do not change selected columns.
3CREATE INDEX CONCURRENTLY is not required in this sandbox; avoid table rewrites.
Hidden tests score the final tables or files, not the exact syntax you used. Test implementation is never shown to participants.

Signed-in workspace: Open in app