explain.depesz.com

A tool for finding a real cause for slow queries.

Result: Ogq

options
Did it help? Consider supporting us - Bitcoin address: 12v2hUztAk2LgzQ9H9LMwuU32urHMjZQnq
# exclusive inclusive rows x rows loops node
1. 513.083 3947.085 ↑ 1.0 5000000 1

Limit (cost=46565.00..109072.33 rows=5000000 width=99) (actual time=2109.387..3947.085 rows=5000000 loops=1)

2. 2521.872 3434.002 ↑ 199893.2 5000000 1

Hash Join (cost=46565.00..12494838900.04 rows=999466157905 width=99) (actual time=2109.385..3434.002 rows=5000000 loops=1)

  • Hash Cond: ((tmp_ap_di.ap_tril_gid)::text = (tmp_cm_ledgeritem.salesteam)::text)
3. 389.353 389.353 ↓ 1.0 2000000 1

Seq Scan on tmp_ap_di (cost=0.00..52786.99 rows=1999999 width=99) (actual time=0.005..389.353 rows=2000000 loops=1)

4. 401.168 522.777 ↑ 1.0 1000000 1

Hash (cost=22346.00..22346.00 rows=1000000 width=66) (actual time=522.777..522.777 rows=1000000 loops=1)

5. 121.609 121.609 ↑ 1.0 1000000 1

Seq Scan on tmp_cm_ledgeritem (cost=0.00..22346.00 rows=1000000 width=66) (actual time=0.014..121.609 rows=1000000 loops=1)