explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Dx7t

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

Unique (cost=488,264.07..488,568.16 rows=38,915 width=8) (actual time=27,309.395..27,380.994 rows=22,638 loops=1)

2. 105.560 27,328.867 ↓ 3.0 183,666 1

Sort (cost=488,264.07..488,416.12 rows=60,817 width=8) (actual time=27,309.392..27,328.867 rows=183,666 loops=1)

  • Sort Key: zonfpverzi1_.id
  • Sort Method: quicksort Memory: 14754kB
3. 74.888 27,223.307 ↓ 3.0 183,666 1

Hash Left Join (cost=31,091.06..483,431.50 rows=60,817 width=8) (actual time=330.185..27,223.307 rows=183,666 loops=1)

  • Hash Cond: (zonfpverzi1_.id = dokumenty5_.zonfpverzia_id)
4. 19,431.139 27,126.935 ↓ 2.9 69,949 1

Hash Right Join (cost=28,314.56..479,898.13 rows=23,789 width=8) (actual time=308.258..27,126.935 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,679.665 7,685.641 ↓ 1.0 1,768,194 1

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

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

Merge Left Join (cost=0.86..408,168.90 rows=1,739,340 width=45) (actual time=0.187..5,711.186 rows=1,739,340 loops=1)

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

8. 3,912.192 3,912.192 ↑ 1.0 7,807,009 1

Index Scan using d_dokument_pkey on d_dokument dokument9_ (cost=0.43..326,184.97 rows=7,807,125 width=45) (actual time=0.010..3,912.192 rows=7,807,009 loops=1)

9. 151.470 294.790 ↑ 1.0 756,771 1

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

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

11. 6.324 10.155 ↑ 1.0 38,915 1

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

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

  • Heap Fetches: 0
13. 12.490 21.484 ↑ 1.0 99,489 1

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

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