By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
9999 rows affected
| QUERY PLAN |
|---|
| Sort (cost=108.49..108.75 rows=106 width=42) (actual time=0.168..0.174 rows=106 loops=1) |
| Sort Key: answer_date, question_date |
| Sort Method: quicksort Memory: 33kB |
| -> Bitmap Heap Scan on testdata (cost=5.11..104.92 rows=106 width=42) (actual time=0.045..0.136 rows=106 loops=1) |
| Recheck Cond: (answerer_id = 'answerer_09'::text) |
| Heap Blocks: exact=61 |
| -> Bitmap Index Scan on idx1 (cost=0.00..5.08 rows=106 width=0) (actual time=0.034..0.035 rows=106 loops=1) |
| Index Cond: (answerer_id = 'answerer_09'::text) |
| Planning Time: 0.245 ms |
| Execution Time: 0.206 ms |
| QUERY PLAN |
|---|
| Index Scan using idx1 on testdata (cost=0.29..278.08 rows=106 width=42) (actual time=0.014..0.050 rows=106 loops=1) |
| Index Cond: (answerer_id = 'answerer_09'::text) |
| Planning Time: 0.051 ms |
| Execution Time: 0.065 ms |
| QUERY PLAN |
|---|
| Sort (cost=108.49..108.75 rows=106 width=42) (actual time=0.091..0.096 rows=106 loops=1) |
| Sort Key: answer_date, question_date |
| Sort Method: quicksort Memory: 33kB |
| -> Bitmap Heap Scan on testdata (cost=5.11..104.92 rows=106 width=42) (actual time=0.024..0.067 rows=106 loops=1) |
| Recheck Cond: (answerer_id = 'answerer_09'::text) |
| Heap Blocks: exact=61 |
| -> Bitmap Index Scan on idx1 (cost=0.00..5.08 rows=106 width=0) (actual time=0.016..0.016 rows=106 loops=1) |
| Index Cond: (answerer_id = 'answerer_09'::text) |
| Planning Time: 0.052 ms |
| Execution Time: 0.118 ms |
| QUERY PLAN |
|---|
| Index Scan using idx1 on testdata (cost=0.29..71.13 rows=106 width=42) (actual time=0.013..0.049 rows=106 loops=1) |
| Index Cond: (answerer_id = 'answerer_09'::text) |
| Planning Time: 0.070 ms |
| Execution Time: 0.063 ms |