explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kq7O

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 1,203.239 ↑ 1.0 1 1

Limit (cost=329,741.30..329,741.30 rows=1 width=16) (actual time=1,203.239..1,203.239 rows=1 loops=1)

2. 22.611 1,203.238 ↑ 228,259.0 1 1

Sort (cost=329,741.30..330,311.95 rows=228,259 width=16) (actual time=1,203.238..1,203.238 rows=1 loops=1)

  • Sort Key: products.grow_all_order DESC NULLS LAST
  • Sort Method: top-N heapsort Memory: 25kB
3. 194.441 1,180.627 ↑ 1.0 221,499 1

Hash Join (cost=298,158.20..328,600.00 rows=228,259 width=16) (actual time=984.382..1,180.627 rows=221,499 loops=1)

  • Hash Cond: (mp.product_id = products.product_id)
4. 70.372 85.983 ↑ 1.0 221,499 1

Bitmap Heap Scan on wp_pidi_category_parent_product_aliexpress mp (cost=5,021.44..24,525.67 rows=228,259 width=8) (actual time=18.330..85.983 rows=221,499 loops=1)

  • Recheck Cond: (parent = 15)
  • Heap Blocks: exact=16651
5. 15.611 15.611 ↑ 1.0 221,499 1

Bitmap Index Scan on tree_product_index (cost=0.00..4,964.37 rows=228,259 width=0) (actual time=15.611..15.611 rows=221,499 loops=1)

  • Index Cond: (parent = 15)
6. 206.760 900.203 ↑ 1.0 1,231,723 1

Hash (cost=271,725.23..271,725.23 rows=1,231,723 width=16) (actual time=900.203..900.203 rows=1,231,723 loops=1)

  • Buckets: 131072 Batches: 32 Memory Usage: 2635kB
7. 693.443 693.443 ↑ 1.0 1,231,723 1

Seq Scan on wp_pidi_product_aliexpress products (cost=0.00..271,725.23 rows=1,231,723 width=16) (actual time=0.117..693.443 rows=1,231,723 loops=1)