explain.depesz.com

A tool for finding a real cause for slow queries.

Result: 8WhG

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

Sort (cost=1,404,035.00..1,406,314.85 rows=911,941 width=599) (actual time=29,357.841..29,947.410 rows=1,000,000 loops=1)

  • Sort Key: fs_agrperson.fs_party
  • Sort Method: external sort Disk: 371464kB
2. 644.387 16,208.708 ↓ 1.1 1,000,000 1

Hash Join (cost=93,995.99..341,249.31 rows=911,941 width=599) (actual time=6,511.714..16,208.708 rows=1,000,000 loops=1)

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

Seq Scan on cm_ledgeritem (cost=0.00..99,075.00 rows=1,004,333 width=500) (actual time=7.959..9,060.613 rows=1,000,000 loops=1)

  • Filter: (fs_batchid = 1)
4. 28.370 6,503.708 ↓ 1.1 45,351 1

Hash (cost=92,676.25..92,676.25 rows=41,179 width=132) (actual time=6,503.708..6,503.708 rows=45,351 loops=1)

5. 58.549 6,475.338 ↓ 1.1 45,351 1

Hash Join (cost=2,886.40..92,676.25 rows=41,179 width=132) (actual time=72.658..6,475.338 rows=45,351 loops=1)

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

Seq Scan on fs_debtitem (cost=0.00..87,468.27 rows=41,179 width=66) (actual time=16.263..6,360.552 rows=45,351 loops=1)

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

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

8. 35.531 35.531 ↑ 1.0 45,351 1

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