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. 13795.586 23526.272 ↓ 1.1 1000000 1

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

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

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

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

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

  • Filter: (fs_batchid = 1)
4. 28.164 7743.006 ↓ 1.1 45351 1

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

5. 57.163 7714.842 ↓ 1.1 45351 1

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

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

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

  • Filter: (fs_annualize = 0)
7. 20.775 56.296 ↑ 1.0 45351 1

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

8. 35.521 35.521 ↑ 1.0 45351 1

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