explain.depesz.com

PostgreSQL's explain analyze made readable

Result: dXWt

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 25,381.067 ↓ 0.0 0 1

Unique (cost=479,899.97..479,900.19 rows=44 width=8) (actual time=25,381.067..25,381.067 rows=0 loops=1)

2. 0.007 25,381.067 ↓ 0.0 0 1

Sort (cost=479,899.97..479,900.08 rows=44 width=8) (actual time=25,381.067..25,381.067 rows=0 loops=1)

  • Sort Key: zonfpverzi1_.id
  • Sort Method: quicksort Memory: 25kB
3. 0.001 25,381.060 ↓ 0.0 0 1

Nested Loop Left Join (cost=28,314.85..479,898.77 rows=44 width=8) (actual time=25,381.060..25,381.060 rows=0 loops=1)

4. 17,873.264 25,381.059 ↓ 0.0 0 1

Hash Right Join (cost=28,314.56..479,892.01 rows=17 width=8) (actual time=25,381.059..25,381.059 rows=0 loops=1)

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

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

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

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

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

8. 3,847.440 3,847.440 ↓ 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,847.440 rows=7,807,009 loops=1)

9. 150.239 295.325 ↑ 1.0 756,771 1

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

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

11. 7.585 12.500 ↑ 1.0 38,915 1

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

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

  • Heap Fetches: 0
13. 0.000 0.000 ↓ 0.0 0

Index Scan using zonfpverzia_to_dokument__zonfpverzia_id_idx on zonfpverzia_to_dokument dokumenty5_ (cost=0.29..0.37 rows=3 width=16) (never executed)

  • Index Cond: (zonfpverzi1_.id = zonfpverzia_id)