explain.depesz.com

PostgreSQL's explain analyze made readable

Result: PCW2

Settings
# exclusive inclusive rows x rows loops node
1. 21.770 27,063.225 ↑ 1.7 22,638 1

Unique (cost=488,257.95..488,562.03 rows=38,915 width=8) (actual time=27,032.487..27,063.225 rows=22,638 loops=1)

2. 84.974 27,041.455 ↓ 3.0 183,666 1

Sort (cost=488,257.95..488,409.99 rows=60,817 width=8) (actual time=27,032.485..27,041.455 rows=183,666 loops=1)

  • Sort Key: zonfpverzi1_.id
  • Sort Method: quicksort Memory: 14754kB
3. 68.128 26,956.481 ↓ 3.0 183,666 1

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

  • Hash Cond: (zonfpverzi1_.id = dokumenty5_.zonfpverzia_id)
4. 18,636.918 26,868.263 ↓ 2.9 69,949 1

Hash Right Join (cost=28,314.56..479,892.01 rows=23,789 width=8) (actual time=326.128..26,868.263 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,630.667 8,218.923 ↓ 1.0 1,768,194 1

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

  • Hash Cond: (dokumenty8_.podmienkapomocidokumentzonfp_id = podmienkyp7_.id)
6. 1,423.739 6,278.013 ↑ 1.0 1,739,340 1

Merge Left Join (cost=0.86..408,162.78 rows=1,739,340 width=45) (actual time=0.226..6,278.013 rows=1,739,340 loops=1)

  • Merge Cond: (dokumenty8_.dokument_id = dokument9_.id)
7. 573.070 573.070 ↑ 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.013..573.070 rows=1,739,340 loops=1)

8. 4,281.204 4,281.204 ↓ 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.008..4,281.204 rows=7,807,009 loops=1)

9. 157.642 310.243 ↑ 1.0 756,771 1

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

  • Buckets: 524288 Batches: 4 Memory Usage: 12965kB
10. 152.601 152.601 ↑ 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.038..152.601 rows=756,771 loops=1)

11. 7.412 12.422 ↑ 1.0 38,915 1

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

  • Buckets: 65536 Batches: 1 Memory Usage: 2033kB
12. 5.010 5.010 ↑ 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.028..5.010 rows=38,915 loops=1)

  • Heap Fetches: 0
13. 11.416 20.090 ↑ 1.0 99,489 1

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

  • Buckets: 131072 Batches: 1 Memory Usage: 5688kB
14. 8.674 8.674 ↑ 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.014..8.674 rows=99,489 loops=1)