explain.depesz.com

A tool for finding a real cause for slow queries.

Result: oNkc

options
Did it help? Consider supporting us - Bitcoin address: 12v2hUztAk2LgzQ9H9LMwuU32urHMjZQnq
# exclusive inclusive rows x rows loops node
1. 14965.380 17578.170 ↓ 1.1 1000000 1

Sort (cost=1370761.30..1373041.15 rows=911941 width=599) (actual time=17025.029..17578.170 rows=1000000 loops=1)

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

Hash Join (cost=93995.99..307975.61 rows=911941 width=599) (actual time=1149.936..2612.790 rows=1000000 loops=1)

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

Index Scan using tmp_idx on cm_ledgeritem (cost=0.00..65801.30 rows=1004333 width=500) (actual time=0.070..844.089 rows=1000000 loops=1)

  • Index Cond: (fs_batchid = 1)
4. 28.248 1149.833 ↓ 1.1 45351 1

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

5. 57.769 1121.585 ↓ 1.1 45351 1

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

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

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

  • Filter: (fs_annualize = 0)
7. 20.845 58.861 ↑ 1.0 45351 1

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

8. 38.016 38.016 ↑ 1.0 45351 1

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