By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 1000
| QUERY PLAN |
|---|
| Seq Scan on images (cost=0.00..17015.12 rows=6731 width=20) (actual time=113.743..365.799 rows=1000 loops=1) |
| Buffers: shared hit=185 read=48 dirtied=2 written=1 |
| Planning Time: 0.769 ms |
| Execution Time: 366.224 ms |
EXPLAIN
| QUERY PLAN |
|---|
| Nested Loop (cost=1.25..289.84 rows=6731 width=20) (actual time=0.206..9.514 rows=1000 loops=1) |
| Buffers: shared hit=53 |
| -> Seq Scan on images (cost=0.00..120.31 rows=6731 width=36) (actual time=0.026..0.316 rows=1000 loops=1) |
| Buffers: shared hit=53 |
| -> Function Scan on st_centroid centroid (cost=1.25..1.26 rows=1 width=32) (actual time=0.008..0.008 rows=1 loops=1000) |
| Planning Time: 0.091 ms |
| Execution Time: 9.700 ms |
EXPLAIN
| QUERY PLAN |
|---|
| Nested Loop (cost=1.25..289.84 rows=6731 width=20) (actual time=0.034..9.233 rows=1000 loops=1) |
| Buffers: shared hit=53 |
| -> Seq Scan on images (cost=0.00..120.31 rows=6731 width=36) (actual time=0.008..0.281 rows=1000 loops=1) |
| Buffers: shared hit=53 |
| -> Function Scan on st_centroid centroid (cost=1.25..1.26 rows=1 width=32) (actual time=0.008..0.008 rows=1 loops=1000) |
| Planning Time: 0.068 ms |
| Execution Time: 9.359 ms |
EXPLAIN