explain.depesz.com

A tool for finding a real cause for slow queries.

Result: KEz

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

Limit (cost=0.00..34344.83 rows=500000 width=99) (actual time=0.080..1640.894 rows=500000 loops=1)

2. 1456.057 1588.699 ↑ 1998932.3 500000 1

Merge Join (cost=0.00..68652998770.25 rows=999466157905 width=99) (actual time=0.078..1588.699 rows=500000 loops=1)

  • Merge Cond: ((tmp_ap_di.ap_tril_gid)::text = (tmp_cm_ledgeritem.salesteam)::text)
3. 0.042 0.042 ↑ 1999999.0 1 1

Index Scan using tmp_ap_di_ap_tril_gid on tmp_ap_di (cost=0.00..254613.18 rows=1999999 width=99) (actual time=0.042..0.042 rows=1 loops=1)

4. 132.600 132.600 ↑ 2.0 500000 1

Index Scan using tmp_cm_ledgeritem_salesteam on tmp_cm_ledgeritem (cost=0.00..56189.54 rows=1000000 width=66) (actual time=0.026..132.600 rows=500000 loops=1)