explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Xb89

Settings
# exclusive inclusive rows x rows loops node
1. 0.170 557.831 ↓ 9.2 4,233 1

Limit (cost=131,626.08..142,115.01 rows=459 width=212) (actual time=490.520..557.831 rows=4,233 loops=1)

2. 3.123 557.661 ↓ 9.2 4,233 1

Hash Semi Join (cost=131,626.08..142,115.01 rows=459 width=212) (actual time=490.520..557.661 rows=4,233 loops=1)

  • Hash Cond: (article16_.id = article19_.id)
3. 5.141 514.661 ↓ 5.7 11,350 1

Hash Semi Join (cost=123,209.73..133,683.00 rows=1,983 width=228) (actual time=450.640..514.661 rows=11,350 loops=1)

  • Hash Cond: (article0_.id = article16_.id)
4. 32.375 487.279 ↓ 2.5 22,368 1

Hash Right Join (cost=116,950.97..127,358.19 rows=9,071 width=212) (actual time=428.392..487.279 rows=22,368 loops=1)

  • Hash Cond: (omschrijvi11_.meertaligobject_id = article0_.id)
5. 28.157 28.157 ↓ 1.0 84,264 1

Seq Scan on objectomschrijving omschrijvi11_ (cost=0.00..9,686.75 rows=83,966 width=43) (actual time=0.004..28.157 rows=84,264 loops=1)

  • Filter: (taal_id = 35)
  • Rows Removed by Filter: 225956
6. 6.357 426.747 ↓ 2.5 22,368 1

Hash (cost=116,838.87..116,838.87 rows=8,968 width=177) (actual time=426.747..426.747 rows=22,368 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 2541kB
7. 2.683 420.390 ↓ 2.5 22,368 1

Hash Left Join (cost=109,750.56..116,838.87 rows=8,968 width=177) (actual time=380.919..420.390 rows=22,368 loops=1)

  • Hash Cond: (articleweb7_.promowebtext_id = promowebte10_.id)
8. 45.872 417.706 ↓ 2.5 22,368 1

Hash Right Join (cost=109,717.16..116,771.83 rows=8,968 width=129) (actual time=380.911..417.706 rows=22,368 loops=1)

  • Hash Cond: (values9_.multilingualtext_id = multilingu8_.id)
9. 11.774 16.570 ↓ 1.0 127,200 1

Bitmap Heap Scan on multilingualtextvalue values9_ (cost=2,365.64..8,908.99 rows=126,108 width=28) (actual time=5.222..16.570 rows=127,200 loops=1)

  • Recheck Cond: (language_id = 35)
10. 4.796 4.796 ↓ 1.0 127,200 1

Bitmap Index Scan on idx_multilingualtextvalue_language_id (cost=0.00..2,334.11 rows=126,108 width=0) (actual time=4.796..4.796 rows=127,200 loops=1)

  • Index Cond: (language_id = 35)
11. 6.041 355.264 ↓ 2.5 22,368 1

Hash (cost=107,239.42..107,239.42 rows=8,968 width=117) (actual time=355.264..355.264 rows=22,368 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 2782kB
12. 92.779 349.223 ↓ 2.5 22,368 1

Hash Right Join (cost=100,405.79..107,239.42 rows=8,968 width=117) (actual time=245.334..349.223 rows=22,368 loops=1)

  • Hash Cond: (multilingu8_.id = articleweb7_.title_id)
13. 12.603 12.603 ↑ 1.0 294,397 1

Seq Scan on multilingualtext multilingu8_ (cost=0.00..4,535.97 rows=294,397 width=8) (actual time=0.003..12.603 rows=294,397 loops=1)

14. 5.661 243.841 ↓ 2.5 22,368 1

Hash (cost=100,293.69..100,293.69 rows=8,968 width=117) (actual time=243.841..243.841 rows=22,368 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 2782kB
15. 8.670 238.180 ↓ 2.5 22,368 1

Hash Join (cost=21,011.57..100,293.69 rows=8,968 width=117) (actual time=176.921..238.180 rows=22,368 loops=1)

  • Hash Cond: (article0_.warehouse_id = articletyp12_.id)
  • Join Filter: ((stockcache1_.availablestock > 0::numeric) OR (stockcache1_.sellablepreferredsupplierstock > 0::numeric) OR ((alternatives: SubPlan 1 or hashed SubPlan 2) AND (stockcache1_.physicalstock > 0::numeric)) OR ((articletyp12_.articletype)::text = 'BUNDLE'::text))
  • Rows Removed by Join Filter: 7077
16. 6.438 229.043 ↓ 1.8 29,445 1

Hash Left Join (cost=21,010.46..28,570.81 rows=16,711 width=113) (actual time=175.729..229.043 rows=29,445 loops=1)

  • Hash Cond: (article0_.id = rentoption6_.article_id)
17. 10.329 221.451 ↓ 1.8 29,445 1

Hash Right Join (cost=20,831.73..28,233.51 rows=16,711 width=93) (actual time=174.565..221.451 rows=29,445 loops=1)

  • Hash Cond: (articlegro3_.id = articlegro2_.group_id)
18. 23.493 101.199 ↑ 1.0 8,994 1

Hash Right Join (cost=11,090.54..18,145.33 rows=8,994 width=28) (actual time=64.637..101.199 rows=8,994 loops=1)

  • Hash Cond: (values5_.multilingualtext_id = multilingu4_.id)
19. 13.921 20.511 ↓ 1.0 127,200 1

Bitmap Heap Scan on multilingualtextvalue values5_ (cost=2,365.64..8,908.99 rows=126,108 width=28) (actual time=7.026..20.511 rows=127,200 loops=1)

  • Recheck Cond: (language_id = 35)
20. 6.590 6.590 ↓ 1.0 127,200 1

Bitmap Index Scan on idx_multilingualtextvalue_language_id (cost=0.00..2,334.11 rows=126,108 width=0) (actual time=6.590..6.590 rows=127,200 loops=1)

  • Index Cond: (language_id = 35)
21. 1.205 57.195 ↑ 1.0 8,994 1

Hash (cost=8,612.48..8,612.48 rows=8,994 width=16) (actual time=57.195..57.195 rows=8,994 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 352kB
22. 7.736 55.990 ↑ 1.0 8,994 1

Hash Left Join (cost=8,215.93..8,612.48 rows=8,994 width=16) (actual time=47.847..55.990 rows=8,994 loops=1)

  • Hash Cond: (articlegro3_.name_id = multilingu4_.id)
23. 0.448 0.448 ↑ 1.0 8,994 1

Seq Scan on articlegroup articlegro3_ (cost=0.00..182.94 rows=8,994 width=16) (actual time=0.001..0.448 rows=8,994 loops=1)

24. 27.062 47.806 ↑ 1.0 294,397 1

Hash (cost=4,535.97..4,535.97 rows=294,397 width=8) (actual time=47.806..47.806 rows=294,397 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 9200kB
25. 20.744 20.744 ↑ 1.0 294,397 1

Seq Scan on multilingualtext multilingu4_ (cost=0.00..4,535.97 rows=294,397 width=8) (actual time=0.002..20.744 rows=294,397 loops=1)

26. 5.990 109.923 ↓ 1.8 29,445 1

Hash (cost=9,532.30..9,532.30 rows=16,711 width=73) (actual time=109.923..109.923 rows=29,445 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 2903kB
27. 23.549 103.933 ↓ 1.8 29,445 1

Hash Right Join (cost=7,482.03..9,532.30 rows=16,711 width=73) (actual time=77.327..103.933 rows=29,445 loops=1)

  • Hash Cond: (stockcache1_.article_id = article0_.id)
28. 3.071 3.071 ↑ 1.0 68,830 1

Seq Scan on articlestockcache stockcache1_ (cost=0.00..1,367.30 rows=68,830 width=18) (actual time=0.002..3.071 rows=68,830 loops=1)

29. 5.196 77.313 ↓ 1.8 29,445 1

Hash (cost=7,273.14..7,273.14 rows=16,711 width=63) (actual time=77.313..77.313 rows=29,445 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 2541kB
30. 13.868 72.117 ↓ 1.8 29,445 1

Hash Right Join (cost=6,302.43..7,273.14 rows=16,711 width=63) (actual time=56.596..72.117 rows=29,445 loops=1)

  • Hash Cond: (articlegro2_.id = article0_.groupmember_id)
31. 1.661 1.661 ↑ 1.0 37,061 1

Seq Scan on articlegroupmember articlegro2_ (cost=0.00..644.61 rows=37,061 width=23) (actual time=0.002..1.661 rows=37,061 loops=1)

32. 6.111 56.588 ↓ 1.8 29,445 1

Hash (cost=6,093.55..6,093.55 rows=16,711 width=56) (actual time=56.588..56.588 rows=29,445 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 2173kB
33. 21.179 50.477 ↓ 1.8 29,445 1

Hash Join (cost=3,933.45..6,093.55 rows=16,711 width=56) (actual time=21.963..50.477 rows=29,445 loops=1)

  • Hash Cond: (articleweb7_.id = article0_.websettings_id)
34. 7.345 7.345 ↑ 1.0 39,378 1

Seq Scan on articlewebsettings articleweb7_ (cost=0.00..1,549.78 rows=39,396 width=24) (actual time=0.002..7.345 rows=39,378 loops=1)

  • Filter: online
  • Rows Removed by Filter: 29500
35. 4.871 21.953 ↓ 1.0 30,099 1

Hash (cost=3,566.70..3,566.70 rows=29,340 width=48) (actual time=21.953..21.953 rows=30,099 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 2217kB
36. 17.082 17.082 ↓ 1.0 30,271 1

Seq Scan on article article0_ (cost=0.00..3,566.70 rows=29,340 width=48) (actual time=0.003..17.082 rows=30,271 loops=1)

  • Filter: (((status)::text = 'ARTICLE_ACTIVE'::text) OR ((status)::text = 'ARTICLE_NO_PURCHASE'::text))
  • Rows Removed by Filter: 38709
37. 0.620 1.154 ↑ 1.0 5,099 1

Hash (cost=114.99..114.99 rows=5,099 width=28) (actual time=1.154..1.154 rows=5,099 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 279kB
38. 0.534 0.534 ↑ 1.0 5,099 1

Seq Scan on rentoption rentoption6_ (cost=0.00..114.99 rows=5,099 width=28) (actual time=0.002..0.534 rows=5,099 loops=1)

39. 0.000 0.002 ↑ 1.0 5 1

Hash (cost=1.05..1.05 rows=5 width=20) (actual time=0.002..0.002 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 1kB
40. 0.002 0.002 ↑ 1.0 5 1

Seq Scan on articletypewarehouse articletyp12_ (cost=0.00..1.05 rows=5 width=20) (actual time=0.001..0.002 rows=5 loops=1)

41.          

SubPlan (forHash Join)

42. 0.000 0.000 ↓ 0.0 0

Index Only Scan using idx_rentoption_article_id on rentoption rentoption14_ (cost=0.00..4.27 rows=1 width=0) (never executed)

  • Index Cond: (article_id = article0_.id)
  • Heap Fetches: 0
43. 0.465 0.465 ↑ 1.0 5,099 1

Seq Scan on rentoption rentoption14_ (cost=0.00..114.99 rows=5,099 width=8) (actual time=0.001..0.465 rows=5,099 loops=1)

44. 0.000 0.001 ↓ 0.0 0 1

Hash (cost=20.40..20.40 rows=1,040 width=48) (actual time=0.001..0.001 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 0kB
45. 0.001 0.001 ↓ 0.0 0 1

Seq Scan on promowebtext promowebte10_ (cost=0.00..20.40 rows=1,040 width=48) (actual time=0.001..0.001 rows=0 loops=1)

46. 1.690 22.241 ↑ 1.0 14,888 1

Hash (cost=6,070.22..6,070.22 rows=15,083 width=16) (actual time=22.241..22.241 rows=14,888 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 582kB
47. 0.894 20.551 ↑ 1.0 14,888 1

Nested Loop (cost=4,369.21..6,070.22 rows=15,083 width=16) (actual time=14.208..20.551 rows=14,888 loops=1)

48. 0.006 0.006 ↑ 1.0 1 1

Index Only Scan using articlewebtag_pkey on articlewebtag articleweb18_ (cost=0.00..8.27 rows=1 width=8) (actual time=0.005..0.006 rows=1 loops=1)

  • Index Cond: (id = 42605544)
  • Heap Fetches: 0
49. 4.632 19.651 ↑ 1.0 14,888 1

Hash Join (cost=4,369.21..5,911.12 rows=15,083 width=24) (actual time=14.194..19.651 rows=14,888 loops=1)

  • Hash Cond: (webtags17_.article_id = article16_.id)
50. 0.850 1.376 ↑ 1.0 14,888 1

Bitmap Heap Scan on article_articlewebtag webtags17_ (cost=285.16..1,487.70 rows=15,083 width=16) (actual time=0.539..1.376 rows=14,888 loops=1)

  • Recheck Cond: (webtags_id = 42605544)
51. 0.526 0.526 ↑ 1.0 14,888 1

Bitmap Index Scan on article_articlewebtag_webtags_id_index (cost=0.00..281.39 rows=15,083 width=0) (actual time=0.526..0.526 rows=14,888 loops=1)

  • Index Cond: (webtags_id = 42605544)
52. 6.223 13.643 ↑ 1.0 68,980 1

Hash (cost=3,221.80..3,221.80 rows=68,980 width=8) (actual time=13.643..13.643 rows=68,980 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 2156kB
53. 7.420 7.420 ↑ 1.0 68,980 1

Seq Scan on article article16_ (cost=0.00..3,221.80 rows=68,980 width=8) (actual time=0.001..7.420 rows=68,980 loops=1)

54. 1.929 39.877 ↓ 1.1 17,159 1

Hash (cost=8,216.66..8,216.66 rows=15,975 width=16) (actual time=39.877..39.877 rows=17,159 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 671kB
55. 5.588 37.948 ↓ 1.1 17,159 1

Hash Join (cost=4,106.15..8,216.66 rows=15,975 width=16) (actual time=13.398..37.948 rows=17,159 loops=1)

  • Hash Cond: (webtags20_.article_id = article19_.id)
56. 11.339 19.044 ↓ 1.1 17,159 1

Hash Join (cost=22.09..3,773.17 rows=15,975 width=8) (actual time=0.071..19.044 rows=17,159 loops=1)

  • Hash Cond: (webtags20_.webtags_id = articleweb21_.id)
57. 7.640 7.640 ↑ 1.0 187,442 1

Seq Scan on article_articlewebtag webtags20_ (cost=0.00..2,888.42 rows=187,442 width=16) (actual time=0.002..7.640 rows=187,442 loops=1)

58. 0.003 0.065 ↑ 1.0 30 1

Hash (cost=21.72..21.72 rows=30 width=8) (actual time=0.065..0.065 rows=30 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 1kB
59. 0.062 0.062 ↑ 1.0 30 1

Seq Scan on articlewebtag articleweb21_ (cost=0.00..21.72 rows=30 width=8) (actual time=0.004..0.062 rows=30 loops=1)

  • Filter: (id = ANY ('{42474611,42340979,42341129,42472612,42340997,42341009,42340913,42472676,42341213,42472564,42474006,42341057,42341135,42473671,42472580,42341075,42683956,42340937,42341153,42472628,42341219,42472724,42340967,42474845,42472644,42340985,42341063,42474675,42341045,42341021}'::bigint[]))
  • Rows Removed by Filter: 322
60. 6.095 13.316 ↑ 1.0 68,980 1

Hash (cost=3,221.80..3,221.80 rows=68,980 width=8) (actual time=13.316..13.316 rows=68,980 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 2156kB
61. 7.221 7.221 ↑ 1.0 68,980 1

Seq Scan on article article19_ (cost=0.00..3,221.80 rows=68,980 width=8) (actual time=0.002..7.221 rows=68,980 loops=1)