explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ceLI

Settings
# exclusive inclusive rows x rows loops node
1. 0.040 3,809.206 ↑ 1.0 800 1

Limit (cost=345,760.47..345,782.47 rows=800 width=114) (actual time=3,808.221..3,809.206 rows=800 loops=1)

2. 0.898 3,809.166 ↑ 306.8 800 1

GroupAggregate (cost=345,760.47..352,510.87 rows=245,469 width=114) (actual time=3,808.219..3,809.166 rows=800 loops=1)

  • Group Key: i.id, boc.id
3. 99.448 3,808.268 ↑ 306.5 801 1

Sort (cost=345,760.47..346,374.15 rows=245,469 width=91) (actual time=3,808.203..3,808.268 rows=801 loops=1)

  • Sort Key: i.id, boc.id
  • Sort Method: external merge Disk: 24256kB
4. 2,862.988 3,708.820 ↓ 1.0 253,023 1

Nested Loop Left Join (cost=3.82..311,198.64 rows=245,469 width=91) (actual time=0.072..3,708.820 rows=253,023 loops=1)

  • Join Filter: (i.tags @> ARRAY[t.id])
  • Rows Removed by Join Filter: 19378023
5. 41.688 109.515 ↑ 1.0 245,439 1

Hash Left Join (cost=3.82..20,315.89 rows=245,469 width=95) (actual time=0.039..109.515 rows=245,439 loops=1)

  • Hash Cond: (i.bo_class_id = boc.id)
6. 67.799 67.799 ↑ 1.0 245,439 1

Seq Scan on bo_instance i (cost=0.00..19,634.00 rows=245,469 width=86) (actual time=0.006..67.799 rows=245,439 loops=1)

  • Filter: (NOT is_deleted)
  • Rows Removed by Filter: 161
7. 0.014 0.028 ↑ 1.0 81 1

Hash (cost=2.81..2.81 rows=81 width=17) (actual time=0.028..0.028 rows=81 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 12kB
8. 0.014 0.014 ↑ 1.0 81 1

Seq Scan on bo_class boc (cost=0.00..2.81 rows=81 width=17) (actual time=0.003..0.014 rows=81 loops=1)

9. 736.306 736.317 ↑ 1.0 79 245,439

Materialize (cost=0.00..2.19 rows=79 width=17) (actual time=0.000..0.003 rows=79 loops=245,439)

10. 0.011 0.011 ↑ 1.0 79 1

Seq Scan on tag t (cost=0.00..1.79 rows=79 width=17) (actual time=0.003..0.011 rows=79 loops=1)