explain.depesz.com

A tool for finding a real cause for slow queries.

Result: o6k

options
Did it help? Consider supporting us - Bitcoin address: 12v2hUztAk2LgzQ9H9LMwuU32urHMjZQnq
# exclusive inclusive rows x rows loops node
1. 13,650.775 15,645.535 ↓ 1.1 1,000,000 1

Sort (cost=1,370,778.50..1,373,058.41 rows=911,963 width=599) (actual time=15,102.395..15,645.535 rows=1,000,000 loops=1)

  • Sort Key: fs_agrperson.fs_party
  • Sort Method: external sort Disk: 371464kB
2. 613.546 1,994.760 ↓ 1.1 1,000,000 1

Hash Join (cost=93,996.64..307,976.48 rows=911,963 width=599) (actual time=564.618..1,994.760 rows=1,000,000 loops=1)

  • Hash Cond: ((cm_ledgeritem.salesteam)::text = (fs_agrperson.tril_gid)::text)
3. 816.668 816.668 ↑ 1.0 1,000,000 1

Index Scan using tmp_idx on cm_ledgeritem (cost=0.00..65,801.30 rows=1,004,333 width=500) (actual time=0.051..816.668 rows=1,000,000 loops=1)

  • Index Cond: (fs_batchid = 1)
4. 26.667 564.546 ↓ 1.1 45,351 1

Hash (cost=92,676.89..92,676.89 rows=41,180 width=132) (actual time=564.546..564.546 rows=45,351 loops=1)

5. 53.970 537.879 ↓ 1.1 45,351 1

Hash Join (cost=2,886.40..92,676.89 rows=41,180 width=132) (actual time=56.904..537.879 rows=45,351 loops=1)

  • Hash Cond: ((fs_debtitem.fs_party)::text = (fs_agrperson.fs_party)::text)
6. 427.140 427.140 ↓ 1.1 45,351 1

Seq Scan on fs_debtitem (cost=0.00..87,468.89 rows=41,180 width=66) (actual time=0.013..427.140 rows=45,351 loops=1)

  • Filter: (fs_annualize = 0)
7. 20.774 56.769 ↑ 1.0 45,351 1

Hash (cost=1,787.51..1,787.51 rows=45,351 width=66) (actual time=56.769..56.769 rows=45,351 loops=1)

8. 35.995 35.995 ↑ 1.0 45,351 1

Seq Scan on fs_agrperson (cost=0.00..1,787.51 rows=45,351 width=66) (actual time=0.008..35.995 rows=45,351 loops=1)