By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 100000
QUERY PLAN |
---|
Limit (actual time=0.540..0.547 rows=10 loops=1) |
-> Index Scan using demo_pkey on demo (actual time=0.536..0.541 rows=10 loops=1) |
Index Cond: (a = 50) |
Planning Time: 10.459 ms |
Execution Time: 0.608 ms |
Peak Memory Usage: 8 kB |
EXPLAIN
QUERY PLAN |
---|
Limit (actual time=217.694..217.694 rows=0 loops=1) |
-> Index Scan using demo_pkey on demo (actual time=217.691..217.691 rows=0 loops=1) |
Index Cond: (b = 5000) |
Planning Time: 0.102 ms |
Execution Time: 217.740 ms |
Peak Memory Usage: 8 kB |
EXPLAIN
QUERY PLAN |
---|
Limit (actual time=0.443..0.443 rows=0 loops=1) |
-> Index Scan using demo_pkey on demo (actual time=0.442..0.442 rows=0 loops=1) |
Index Cond: ((a = 50) AND (b = 5000)) |
Planning Time: 0.098 ms |
Execution Time: 0.474 ms |
Peak Memory Usage: 8 kB |
EXPLAIN
QUERY PLAN |
---|
Limit (actual time=0.372..0.372 rows=0 loops=1) |
-> Index Scan using demo_pkey on demo (actual time=0.371..0.371 rows=0 loops=1) |
Index Cond: ((a = 50) AND (b > 5000)) |
Planning Time: 0.627 ms |
Execution Time: 0.408 ms |
Peak Memory Usage: 8 kB |
EXPLAIN
QUERY PLAN |
---|
Limit (actual time=0.793..0.793 rows=0 loops=1) |
-> Index Scan using demo_pkey on demo (actual time=0.792..0.792 rows=0 loops=1) |
Index Cond: ((a > 50) AND (b = 5000)) |
Planning Time: 0.045 ms |
Execution Time: 0.818 ms |
Peak Memory Usage: 8 kB |
EXPLAIN
QUERY PLAN |
---|
Limit (actual time=0.651..0.651 rows=0 loops=1) |
-> Index Scan using demo_pkey on demo (actual time=0.650..0.650 rows=0 loops=1) |
Index Cond: ((a > 50) AND (b > 5000)) |
Planning Time: 0.044 ms |
Execution Time: 0.676 ms |
Peak Memory Usage: 8 kB |
EXPLAIN