explain.depesz.com

A tool for finding a real cause for slow queries.

Result: NYR

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

Sort (cost=1,404,035.00..1,406,314.85 rows=911,941 width=599) (actual time=22,964.228..23,526.272 rows=1,000,000 loops=1)

  • Sort Key: fs_agrperson.fs_party
  • Sort Method: external sort Disk: 371464kB
2. 637.560 9,730.686 ↓ 1.1 1,000,000 1

Hash Join (cost=93,995.99..341,249.31 rows=911,941 width=599) (actual time=7,743.062..9,730.686 rows=1,000,000 loops=1)

  • Hash Cond: ((cm_ledgeritem.salesteam)::text = (fs_agrperson.tril_gid)::text)
3. 1,350.120 1,350.120 ↑ 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=0.026..1,350.120 rows=1,000,000 loops=1)

  • Filter: (fs_batchid = 1)
4. 28.164 7,743.006 ↓ 1.1 45,351 1

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

5. 57.163 7,714.842 ↓ 1.1 45,351 1

Hash Join (cost=2,886.40..92,676.25 rows=41,179 width=132) (actual time=68.712..7,714.842 rows=45,351 loops=1)

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

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

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

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

8. 35.521 35.521 ↑ 1.0 45,351 1

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