explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Adm4

Settings
# exclusive inclusive rows x rows loops node
1. 22.585 25,448.249 ↑ 1.7 22,638 1

Unique (cost=488,257.95..488,562.03 rows=38,915 width=8) (actual time=25,416.106..25,448.249 rows=22,638 loops=1)

2. 82.307 25,425.664 ↓ 3.0 183,666 1

Sort (cost=488,257.95..488,409.99 rows=60,817 width=8) (actual time=25,416.104..25,425.664 rows=183,666 loops=1)

  • Sort Key: zonfpverzi1_.id
  • Sort Method: quicksort Memory: 14754kB
3. 66.136 25,343.357 ↓ 3.0 183,666 1

Hash Left Join (cost=31,091.06..483,425.37 rows=60,817 width=8) (actual time=350.593..25,343.357 rows=183,666 loops=1)

  • Hash Cond: (zonfpverzi1_.id = dokumenty5_.zonfpverzia_id)
4. 17,721.466 25,254.961 ↓ 2.9 69,949 1

Hash Right Join (cost=28,314.56..479,892.01 rows=23,789 width=8) (actual time=327.801..25,254.961 rows=69,949 loops=1)

  • Hash Cond: (podmienkyp7_.zonfpverzia_id = zonfpverzi1_.id)
  • Filter: (f_unaccent(lower(dokument9_.nazov)) ~~ '%vypis%'::text)
  • Rows Removed by Filter: 1700045
5. 1,548.034 7,523.150 ↓ 1.0 1,768,194 1

Hash Right Join (cost=27,124.21..474,123.91 rows=1,739,340 width=45) (actual time=316.922..7,523.150 rows=1,768,194 loops=1)

  • Hash Cond: (dokumenty8_.podmienkapomocidokumentzonfp_id = podmienkyp7_.id)
6. 1,285.523 5,660.856 ↑ 1.0 1,739,340 1

Merge Left Join (cost=0.86..408,162.78 rows=1,739,340 width=45) (actual time=0.176..5,660.856 rows=1,739,340 loops=1)

  • Merge Cond: (dokumenty8_.dokument_id = dokument9_.id)
7. 506.305 506.305 ↑ 1.0 1,739,340 1

Index Scan using podmienkapomocidokumentzonfp_to_dokument_dokument_id_idx on podmienkapomocidokumentzonfp_to_dokument dokumenty8_ (cost=0.43..40,744.74 rows=1,739,340 width=16) (actual time=0.011..506.305 rows=1,739,340 loops=1)

8. 3,869.028 3,869.028 ↓ 1.0 7,807,009 1

Index Scan using d_dokument_pkey on d_dokument dokument9_ (cost=0.43..326,179.72 rows=7,806,775 width=45) (actual time=0.006..3,869.028 rows=7,807,009 loops=1)

9. 159.928 314.260 ↑ 1.0 756,771 1

Hash (cost=13,967.71..13,967.71 rows=756,771 width=16) (actual time=314.260..314.260 rows=756,771 loops=1)

  • Buckets: 524288 Batches: 4 Memory Usage: 12965kB
10. 154.332 154.332 ↑ 1.0 756,771 1

Seq Scan on d_podmienkapomocidokumentzonfp podmienkyp7_ (cost=0.00..13,967.71 rows=756,771 width=16) (actual time=0.043..154.332 rows=756,771 loops=1)

11. 6.175 10.345 ↑ 1.0 38,915 1

Hash (cost=703.91..703.91 rows=38,915 width=8) (actual time=10.345..10.345 rows=38,915 loops=1)

  • Buckets: 65536 Batches: 1 Memory Usage: 2033kB
12. 4.170 4.170 ↑ 1.0 38,915 1

Index Only Scan using d_zonfpverzia_pkey on d_zonfpverzia zonfpverzi1_ (cost=0.29..703.91 rows=38,915 width=8) (actual time=0.010..4.170 rows=38,915 loops=1)

  • Heap Fetches: 0
13. 12.648 22.260 ↑ 1.0 99,489 1

Hash (cost=1,532.89..1,532.89 rows=99,489 width=16) (actual time=22.260..22.260 rows=99,489 loops=1)

  • Buckets: 131072 Batches: 1 Memory Usage: 5688kB
14. 9.612 9.612 ↑ 1.0 99,489 1

Seq Scan on zonfpverzia_to_dokument dokumenty5_ (cost=0.00..1,532.89 rows=99,489 width=16) (actual time=0.012..9.612 rows=99,489 loops=1)