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. 13738.702 29947.410 ↓ 1.1 1000000 1

Sort (cost=1404035.00..1406314.85 rows=911941 width=599) (actual time=29357.841..29947.410 rows=1000000 loops=1)

  • Sort Key: fs_agrperson.fs_party
  • Sort Method: external sort Disk: 371464kB
2. 644.387 16208.708 ↓ 1.1 1000000 1

Hash Join (cost=93995.99..341249.31 rows=911941 width=599) (actual time=6511.714..16208.708 rows=1000000 loops=1)

  • Hash Cond: ((cm_ledgeritem.salesteam)::text = (fs_agrperson.tril_gid)::text)
3. 9060.613 9060.613 ↑ 1.0 1000000 1

Seq Scan on cm_ledgeritem (cost=0.00..99075.00 rows=1004333 width=500) (actual time=7.959..9060.613 rows=1000000 loops=1)

  • Filter: (fs_batchid = 1)
4. 28.370 6503.708 ↓ 1.1 45351 1

Hash (cost=92676.25..92676.25 rows=41179 width=132) (actual time=6503.708..6503.708 rows=45351 loops=1)

5. 58.549 6475.338 ↓ 1.1 45351 1

Hash Join (cost=2886.40..92676.25 rows=41179 width=132) (actual time=72.658..6475.338 rows=45351 loops=1)

  • Hash Cond: ((fs_debtitem.fs_party)::text = (fs_agrperson.fs_party)::text)
6. 6360.552 6360.552 ↓ 1.1 45351 1

Seq Scan on fs_debtitem (cost=0.00..87468.27 rows=41179 width=66) (actual time=16.263..6360.552 rows=45351 loops=1)

  • Filter: (fs_annualize = 0)
7. 20.706 56.237 ↑ 1.0 45351 1

Hash (cost=1787.51..1787.51 rows=45351 width=66) (actual time=56.237..56.237 rows=45351 loops=1)

8. 35.531 35.531 ↑ 1.0 45351 1

Seq Scan on fs_agrperson (cost=0.00..1787.51 rows=45351 width=66) (actual time=0.016..35.531 rows=45351 loops=1)