explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yVnr

Settings
# exclusive inclusive rows x rows loops node
1. 0.009 166,830.877 ↑ 4,450.4 44 1

Append (cost=716,858,440.93..716,867,312.13 rows=195,818 width=120) (actual time=64,934.953..166,830.877 rows=44 loops=1)

2.          

CTE picklist_0

3. 0.276 0.276 ↑ 1.0 6 1

Seq Scan on t233_opportunitystagenamepicklistdim (cost=0.00..46.54 rows=6 width=4) (actual time=0.006..0.276 rows=6 loops=1)

  • Filter: (correlated_value = ANY ('{"06 - Won, Deploy & Expand","6 - Won, Deploy & Expand","Closed - Won","06 - Won. Deploy & Expand",Won,"06 - Won, Deploy & Expand"}'::text[]))
  • Rows Removed by Filter: 1225
4.          

CTE picklist_1

5. 0.324 0.324 ↑ 1.0 7 1

Seq Scan on t233_opportunitystagenamepicklistdim t233_opportunitystagenamepicklistdim_1 (cost=0.00..48.08 rows=7 width=4) (actual time=0.009..0.324 rows=7 loops=1)

  • Filter: (correlated_value = ANY ('{"HPE Not Pursued",Lost,Close:Duplicate,"HP Not Pursued",Duplicate,Error,"Closed - Lost"}'::text[]))
  • Rows Removed by Filter: 1224
6.          

CTE picklist_4

7. 0.448 0.448 ↑ 1.0 13 1

Seq Scan on t233_opportunitystagenamepicklistdim t233_opportunitystagenamepicklistdim_2 (cost=0.00..57.31 rows=13 width=4) (actual time=0.015..0.448 rows=13 loops=1)

  • Filter: (correlated_value = ANY ('{"06 - Won, Deploy & Expand",Lost,"6 - Won, Deploy & Expand",Close:Duplicate,"HP Not Pursued","06 - Won, Deploy & Expand",Error,"HPE Not Pursued","Closed - Won","06 - Won. Deploy & Expand",Won,Duplicate,"Closed - Lost"}'::text[]))
  • Rows Removed by Filter: 1218
8.          

CTE ownercte

9. 8.459 670.233 ↑ 19.2 8,424 1

Hash Join (cost=93,579.02..260,216.42 rows=161,701 width=4) (actual time=361.314..670.233 rows=8,424 loops=1)

  • Hash Cond: (t166_userrolehierarchy.c662_user_role_id = t67_userroledim.sid)
10. 156.097 649.058 ↑ 4.7 34,135 1

Hash Join (cost=71,181.20..235,113.39 rows=161,701 width=8) (actual time=348.118..649.058 rows=34,135 loops=1)

  • Hash Cond: (t166_userrolehierarchy.sid = distinctclosedateowner.ownerid)
11. 222.696 359.809 ↓ 1.0 1,322,732 1

Bitmap Heap Scan on t166_userrolehierarchy (cost=37,339.33..194,844.93 rows=1,284,507 width=8) (actual time=144.701..359.809 rows=1,322,732 loops=1)

  • Recheck Cond: ((c663_ancestor_role_id = ANY ('{436,247157}'::integer[])) AND (end_stamp = '32503680000000'::bigint))
  • Heap Blocks: exact=39463
12. 137.113 137.113 ↓ 1.0 1,326,395 1

Bitmap Index Scan on ix_t166_userrolehierarchy_ancestor_end_start_timestamp (cost=0.00..37,018.20 rows=1,284,507 width=0) (actual time=137.113..137.113 rows=1,326,395 loops=1)

  • Index Cond: ((c663_ancestor_role_id = ANY ('{436,247157}'::integer[])) AND (end_stamp = '32503680000000'::bigint))
13. 5.016 133.152 ↓ 1.4 33,916 1

Hash (cost=33,534.31..33,534.31 rows=24,605 width=4) (actual time=133.152..133.152 rows=33,916 loops=1)

  • Buckets: 65536 (originally 32768) Batches: 1 (originally 1) Memory Usage: 1705kB
14. 42.026 128.136 ↓ 1.4 33,916 1

HashAggregate (cost=33,288.26..33,534.31 rows=24,605 width=4) (actual time=123.901..128.136 rows=33,916 loops=1)

  • Group Key: distinctclosedateowner.ownerid
15. 66.219 86.110 ↓ 1.2 196,760 1

Bitmap Heap Scan on distinctclosedateowner (cost=3,397.11..32,888.10 rows=160,066 width=4) (actual time=23.037..86.110 rows=196,760 loops=1)

  • Recheck Cond: ((closedate <= 20190131) AND (closedate >= 20181101))
  • Heap Blocks: exact=17913
16. 19.891 19.891 ↓ 1.2 196,760 1

Bitmap Index Scan on ix_closedate_distinctclosedateowner (cost=0.00..3,357.09 rows=160,066 width=0) (actual time=19.891..19.891 rows=196,760 loops=1)

  • Index Cond: ((closedate <= 20190131) AND (closedate >= 20181101))
17. 1.445 12.716 ↑ 9.3 8,370 1

Hash (cost=21,117.18..21,117.18 rows=78,051 width=4) (actual time=12.716..12.716 rows=8,370 loops=1)

  • Buckets: 131072 Batches: 2 Memory Usage: 1177kB
18. 6.805 11.271 ↑ 9.3 8,370 1

Bitmap Heap Scan on t67_userroledim (cost=4,261.99..21,117.18 rows=78,051 width=4) (actual time=4.915..11.271 rows=8,370 loops=1)

  • Recheck Cond: ((end_stamp = '32503680000000'::bigint) AND ((c377_portaltype IS NULL) OR (c377_portaltype = 'None'::text)))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer))
  • Rows Removed by Filter: 5665
  • Heap Blocks: exact=2151
19. 4.466 4.466 ↑ 5.6 14,065 1

Bitmap Index Scan on ix_t67_userroledim_sid_end_start_timestamp_partial (cost=0.00..4,242.48 rows=78,925 width=0) (actual time=4.466..4.466 rows=14,065 loops=1)

  • Index Cond: (end_stamp = '32503680000000'::bigint)
20.          

CTE bucketac

21. 35.880 65,008.249 ↑ 4,317.1 19 1

GroupAggregate (cost=149,626,304.96..298,843,032.87 rows=82,024 width=92) (actual time=64,934.919..65,008.249 rows=19 loops=1)

  • Group Key: t237_oppfact.c844_opp_forecastcategory, (CASE WHEN (t237_oppfact_1.sid IS NULL) THEN 'deleted'::text WHEN ((t237_oppfact_1.c836_opp_close_date < 20181101) OR (t237_oppfact_1.c836_opp_close_date > 20190131)) THEN 'slipped'::text WHEN (SubPlan 5) THEN CASE WHEN (hashed SubPlan 6) THEN 'won'::text WHEN (hashed SubPlan 7) THEN 'lost'::text ELSE CASE WHEN (t234_opportunityforecastcategorypicklistdim_2.correlated_app_order = t234_opportunityforecastcategorypicklistdim_3.correlated_app_order) THEN 'unchanged'::text WHEN (t234_opportunityforecastcategorypicklistdim_2.correlated_app_order > t234_opportunityforecastcategorypicklistdim_3.correlated_app_order) THEN 'upgraded'::text ELSE 'downgraded'::text END END ELSE 'lostOwnership'::text END)
22. 153.683 64,972.369 ↓ 1.3 110,684 1

Sort (cost=149,626,304.67..149,626,509.73 rows=82,024 width=72) (actual time=64,934.816..64,972.369 rows=110,684 loops=1)

  • Sort Key: t237_oppfact.c844_opp_forecastcategory, (CASE WHEN (t237_oppfact_1.sid IS NULL) THEN 'deleted'::text WHEN ((t237_oppfact_1.c836_opp_close_date < 20181101) OR (t237_oppfact_1.c836_opp_close_date > 20190131)) THEN 'slipped'::text WHEN (SubPlan 5) THEN CASE WHEN (hashed SubPlan 6) THEN 'won'::text WHEN (hashed SubPlan 7) THEN 'lost'::text ELSE CASE WHEN (t234_opportunityforecastcategorypicklistdim_2.correlated_app_order = t234_opportunityforecastcategorypicklistdim_3.correlated_app_order) THEN 'unchanged'::text WHEN (t234_opportunityforecastcategorypicklistdim_2.correlated_app_order > t234_opportunityforecastcategorypicklistdim_3.correlated_app_order) THEN 'upgraded'::text ELSE 'downgraded'::text END END ELSE 'lostOwnership'::text END)
  • Sort Method: external merge Disk: 7024kB
23. 31,657.941 64,818.686 ↓ 1.3 110,684 1

Hash Left Join (cost=7,924.24..149,616,242.97 rows=82,024 width=72) (actual time=723.871..64,818.686 rows=110,684 loops=1)

  • Hash Cond: ((t237_oppfact.c845_opp_currency_code = cur177_t0_r0.sid) AND (t237_oppfact.c836_opp_close_date = cur177_t0_r0.rate_date))
24. 22.044 2,061.599 ↓ 1.8 110,684 1

Nested Loop Left Join (cost=3,679.05..382,017.31 rows=60,230 width=64) (actual time=675.144..2,061.599 rows=110,684 loops=1)

25. 39.999 1,707.503 ↓ 2.5 110,684 1

Hash Left Join (cost=3,679.05..367,169.95 rows=44,226 width=60) (actual time=675.129..1,707.503 rows=110,684 loops=1)

  • Hash Cond: (t237_oppfact_1.c844_opp_forecastcategory = t234_opportunityforecastcategorypicklistdim_3.sid)
26. 88.472 1,667.500 ↓ 2.5 110,684 1

Nested Loop Left Join (cost=3,659.37..366,542.17 rows=44,226 width=60) (actual time=675.118..1,667.500 rows=110,684 loops=1)

27. 34.617 1,025.608 ↓ 2.5 110,684 1

Hash Left Join (cost=3,658.81..13,428.57 rows=44,226 width=28) (actual time=675.104..1,025.608 rows=110,684 loops=1)

  • Hash Cond: (t237_oppfact.c844_opp_forecastcategory = t234_opportunityforecastcategorypicklistdim_2.sid)
28. 18.614 990.967 ↓ 2.5 110,684 1

Nested Loop (cost=3,639.13..12,800.79 rows=44,226 width=24) (actual time=675.068..990.967 rows=110,684 loops=1)

29. 6.254 678.341 ↓ 40.8 8,167 1

HashAggregate (cost=3,638.27..3,640.27 rows=200 width=4) (actual time=674.562..678.341 rows=8,167 loops=1)

  • Group Key: ownercte_1.c1
30. 672.087 672.087 ↑ 19.2 8,424 1

CTE Scan on ownercte ownercte_1 (cost=0.00..3,234.02 rows=161,701 width=4) (actual time=361.317..672.087 rows=8,424 loops=1)

31. 293.561 294.012 ↓ 2.8 14 8,167

Index Scan using ix_t237_oppfact_owner_closedate_timestamp on t237_oppfact (cost=0.86..45.75 rows=5 width=28) (actual time=0.011..0.036 rows=14 loops=8,167)

  • Index Cond: ((c832_opp_ownerid = ownercte_1.c1) AND (c836_opp_close_date >= 20181101) AND (c836_opp_close_date <= 20190131) AND (start_stamp <= '1541055600000'::bigint) AND (end_stamp > '1541055600000'::bigint))
  • Filter: ((NOT deleted) AND (NOT (hashed SubPlan 8)))
  • Rows Removed by Filter: 3
32.          

SubPlan (forIndex Scan)

33. 0.451 0.451 ↑ 1.0 13 1

CTE Scan on picklist_4 cte0_4 (cost=0.00..0.26 rows=13 width=4) (actual time=0.016..0.451 rows=13 loops=1)

34. 0.005 0.024 ↑ 86.0 5 1

Hash (cost=14.30..14.30 rows=430 width=8) (actual time=0.024..0.024 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
35. 0.019 0.019 ↑ 86.0 5 1

Seq Scan on t234_opportunityforecastcategorypicklistdim t234_opportunityforecastcategorypicklistdim_2 (cost=0.00..14.30 rows=430 width=8) (actual time=0.018..0.019 rows=5 loops=1)

36. 553.420 553.420 ↑ 1.0 1 110,684

Index Scan using ix_t237_oppfact_sid_timestamp on t237_oppfact t237_oppfact_1 (cost=0.56..7.97 rows=1 width=32) (actual time=0.005..0.005 rows=1 loops=110,684)

  • Index Cond: ((t237_oppfact.sid = sid) AND (t237_oppfact.sid = sid) AND (start_stamp <= '1542009599999'::bigint) AND (end_stamp > '1542009599999'::bigint))
  • Filter: (NOT deleted)
37. 0.001 0.004 ↑ 86.0 5 1

Hash (cost=14.30..14.30 rows=430 width=8) (actual time=0.004..0.004 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
38. 0.003 0.003 ↑ 86.0 5 1

Seq Scan on t234_opportunityforecastcategorypicklistdim t234_opportunityforecastcategorypicklistdim_3 (cost=0.00..14.30 rows=430 width=8) (actual time=0.002..0.003 rows=5 loops=1)

39. 110.684 332.052 ↑ 2.0 1 110,684

Append (cost=0.00..0.32 rows=2 width=16) (actual time=0.002..0.003 rows=1 loops=110,684)

40. 0.000 0.000 ↓ 0.0 0 110,684

Seq Scan on clari_conversion_rate cur177_t1_r1 (cost=0.00..0.00 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=110,684)

  • Filter: ((to_iso_code = 'USD'::text) AND (t237_oppfact_1.c845_opp_currency_code = sid) AND (t237_oppfact_1.c836_opp_close_date = rate_date))
41. 221.368 221.368 ↑ 1.0 1 110,684

Index Scan using ix_usd_clari_conversion_rate_date_isocode on usd_clari_conversion_rate cur177_t1_r1_1 (cost=0.29..0.32 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=110,684)

  • Index Cond: ((t237_oppfact_1.c836_opp_close_date = rate_date) AND (t237_oppfact_1.c845_opp_currency_code = sid))
  • Filter: (to_iso_code = 'USD'::text)
42. 18.882 46.941 ↓ 1.0 101,732 1

Hash (cost=2,222.31..2,222.31 rows=101,706 width=16) (actual time=46.941..46.941 rows=101,732 loops=1)

  • Buckets: 131072 Batches: 2 Memory Usage: 3412kB
43. 6.054 28.059 ↓ 1.0 101,732 1

Append (cost=0.00..2,222.31 rows=101,706 width=16) (actual time=0.145..28.059 rows=101,732 loops=1)

44. 0.003 0.003 ↓ 0.0 0 1

Seq Scan on clari_conversion_rate cur177_t0_r0 (cost=0.00..0.00 rows=1 width=16) (actual time=0.003..0.003 rows=0 loops=1)

  • Filter: (to_iso_code = 'USD'::text)
45. 22.002 22.002 ↓ 1.0 101,732 1

Seq Scan on usd_clari_conversion_rate cur177_t0_r0_1 (cost=0.00..2,222.31 rows=101,705 width=16) (actual time=0.142..22.002 rows=101,732 loops=1)

  • Filter: (to_iso_code = 'USD'::text)
46.          

SubPlan (forHash Left Join)

47. 31,051.600 31,051.600 ↑ 38.0 4,256 104,200

CTE Scan on ownercte (cost=0.00..3,234.02 rows=161,701 width=4) (actual time=0.000..0.298 rows=4,256 loops=104,200)

48. 0.278 0.278 ↑ 1.0 6 1

CTE Scan on picklist_0 cte0_2 (cost=0.00..0.12 rows=6 width=4) (actual time=0.007..0.278 rows=6 loops=1)

49. 0.327 0.327 ↑ 1.0 7 1

CTE Scan on picklist_1 cte0_3 (cost=0.00..0.14 rows=7 width=4) (actual time=0.011..0.327 rows=7 loops=1)

50.          

CTE bucketec

51. 3.744 101,822.501 ↑ 4,551.8 25 1

GroupAggregate (cost=210,743,393.35..417,755,020.03 rows=113,794 width=116) (actual time=101,817.741..101,822.501 rows=25 loops=1)

  • Group Key: (CASE WHEN (t237_oppfact_3.sid IS NULL) THEN 'newBucket'::text WHEN (NOT (hashed SubPlan 10)) THEN CASE WHEN (t237_oppfact_3.c836_opp_close_date > 20190131) THEN 'pulledInBucket'::text WHEN (t237_oppfact_3.c836_opp_close_date < 20181101) THEN 'pushedInBucket'::text WHEN (SubPlan 11) THEN 'otherBucket'::text ELSE 'gainedOwnershipBucket'::text END ELSE 'otherBucket'::text END), (CASE WHEN (hashed SubPlan 12) THEN 'won'::text WHEN (hashed SubPlan 13) THEN 'lost'::text ELSE 'newOpen'::text END), t237_oppfact_2.c844_opp_forecastcategory
52. 8.436 101,818.757 ↑ 8.2 13,920 1

Sort (cost=210,743,392.77..210,743,677.25 rows=113,794 width=88) (actual time=101,817.722..101,818.757 rows=13,920 loops=1)

  • Sort Key: (CASE WHEN (t237_oppfact_3.sid IS NULL) THEN 'newBucket'::text WHEN (NOT (hashed SubPlan 10)) THEN CASE WHEN (t237_oppfact_3.c836_opp_close_date > 20190131) THEN 'pulledInBucket'::text WHEN (t237_oppfact_3.c836_opp_close_date < 20181101) THEN 'pushedInBucket'::text WHEN (SubPlan 11) THEN 'otherBucket'::text ELSE 'gainedOwnershipBucket'::text END ELSE 'otherBucket'::text END), (CASE WHEN (hashed SubPlan 12) THEN 'won'::text WHEN (hashed SubPlan 13) THEN 'lost'::text ELSE 'newOpen'::text END), t237_oppfact_2.c844_opp_forecastcategory
  • Sort Method: quicksort Memory: 1481kB
53. 40,852.599 101,810.321 ↑ 8.2 13,920 1

Merge Right Join (cost=3,660,355.65..210,728,390.31 rows=113,794 width=88) (actual time=17,898.338..101,810.321 rows=13,920 loops=1)

  • Merge Cond: ((t237_oppfact_3.sid = t237_oppfact_2.sid) AND (t237_oppfact_3.sid = t237_oppfact_2.sid))
  • Filter: ((t237_oppfact_3.sid IS NULL) OR (t237_oppfact_3.c836_opp_close_date < 20181101) OR (t237_oppfact_3.c836_opp_close_date > 20190131) OR (NOT (SubPlan 14)))
  • Rows Removed by Filter: 130814
54. 6,026.715 18,895.458 ↑ 1.1 6,968,783 1

Sort (cost=3,614,816.38..3,633,664.89 rows=7,539,406 width=16) (actual time=17,365.272..18,895.458 rows=6,968,783 loops=1)

  • Sort Key: t237_oppfact_3.sid
  • Sort Method: external merge Disk: 177096kB
55. 12,868.743 12,868.743 ↑ 1.1 6,968,783 1

Seq Scan on t237_oppfact t237_oppfact_3 (cost=0.00..2,495,891.30 rows=7,539,406 width=16) (actual time=0.171..12,868.743 rows=6,968,783 loops=1)

  • Filter: ((NOT deleted) AND (start_stamp <= '1541055600000'::bigint) AND (end_stamp > '1541055600000'::bigint))
  • Rows Removed by Filter: 52890512
56. 19.773 588.596 ↓ 1.2 144,734 1

Materialize (cost=45,538.68..46,124.99 rows=117,262 width=28) (actual time=530.306..588.596 rows=144,734 loops=1)

57. 112.327 568.823 ↓ 1.2 144,734 1

Sort (cost=45,538.68..45,831.84 rows=117,262 width=28) (actual time=530.303..568.823 rows=144,734 loops=1)

  • Sort Key: t237_oppfact_2.sid
  • Sort Method: external merge Disk: 5936kB
58. 31.982 456.496 ↓ 1.2 144,734 1

Merge Right Join (cost=21,915.54..32,858.59 rows=117,262 width=28) (actual time=382.322..456.496 rows=144,734 loops=1)

  • Merge Cond: ((cur177_t0_r0_2.rate_date = t237_oppfact_2.c836_opp_close_date) AND (cur177_t0_r0_2.sid = t237_oppfact_2.c845_opp_currency_code))
59. 4.694 45.648 ↑ 1.4 71,877 1

Merge Append (cost=0.31..8,299.20 rows=101,706 width=16) (actual time=0.039..45.648 rows=71,877 loops=1)

  • Sort Key: cur177_t0_r0_2.rate_date, cur177_t0_r0_2.sid
60. 0.006 0.009 ↓ 0.0 0 1

Sort (cost=0.01..0.02 rows=1 width=16) (actual time=0.009..0.009 rows=0 loops=1)

  • Sort Key: cur177_t0_r0_2.rate_date, cur177_t0_r0_2.sid
  • Sort Method: quicksort Memory: 25kB
61. 0.003 0.003 ↓ 0.0 0 1

Seq Scan on clari_conversion_rate cur177_t0_r0_2 (cost=0.00..0.00 rows=1 width=16) (actual time=0.003..0.003 rows=0 loops=1)

  • Filter: (to_iso_code = 'USD'::text)
62. 40.945 40.945 ↑ 1.4 71,877 1

Index Scan using ix_usd_clari_conversion_rate_date_isocode on usd_clari_conversion_rate cur177_t0_r0_3 (cost=0.29..7,027.85 rows=101,705 width=16) (actual time=0.028..40.945 rows=71,877 loops=1)

  • Filter: (to_iso_code = 'USD'::text)
63. 13.729 378.866 ↓ 1.7 144,734 1

Materialize (cost=21,866.64..22,297.16 rows=86,104 width=28) (actual time=334.245..378.866 rows=144,734 loops=1)

64. 110.889 365.137 ↓ 1.7 144,734 1

Sort (cost=21,866.64..22,081.90 rows=86,104 width=28) (actual time=334.240..365.137 rows=144,734 loops=1)

  • Sort Key: t237_oppfact_2.c836_opp_close_date, t237_oppfact_2.c845_opp_currency_code
  • Sort Method: external merge Disk: 5928kB
65. 36.982 254.248 ↓ 1.7 144,734 1

Nested Loop (cost=3,638.84..12,747.29 rows=86,104 width=28) (actual time=2.731..254.248 rows=144,734 loops=1)

66. 4.227 4.924 ↓ 40.8 8,167 1

HashAggregate (cost=3,638.27..3,640.27 rows=200 width=4) (actual time=2.705..4.924 rows=8,167 loops=1)

  • Group Key: ownercte_4.c1
67. 0.697 0.697 ↑ 19.2 8,424 1

CTE Scan on ownercte ownercte_4 (cost=0.00..3,234.02 rows=161,701 width=4) (actual time=0.002..0.697 rows=8,424 loops=1)

68. 212.342 212.342 ↓ 1.8 18 8,167

Index Scan using ix_t237_oppfact_owner_closedate_timestamp on t237_oppfact t237_oppfact_2 (cost=0.56..45.44 rows=10 width=32) (actual time=0.008..0.026 rows=18 loops=8,167)

  • Index Cond: ((c832_opp_ownerid = ownercte_4.c1) AND (c836_opp_close_date >= 20181101) AND (c836_opp_close_date <= 20190131) AND (start_stamp <= '1542009599999'::bigint) AND (end_stamp > '1542009599999'::bigint))
  • Filter: (NOT deleted)
  • Rows Removed by Filter: 0
69.          

SubPlan (forMerge Right Join)

70. 0.003 0.003 ↑ 1.0 13 1

CTE Scan on picklist_4 cte0_5 (cost=0.00..0.26 rows=13 width=4) (actual time=0.001..0.003 rows=13 loops=1)

71. 89.670 89.670 ↑ 19.2 8,424 147

CTE Scan on ownercte ownercte_2 (cost=0.00..3,234.02 rows=161,701 width=4) (actual time=0.000..0.610 rows=8,424 loops=147)

72. 0.002 0.002 ↑ 1.0 6 1

CTE Scan on picklist_0 cte0_6 (cost=0.00..0.12 rows=6 width=4) (actual time=0.001..0.002 rows=6 loops=1)

73. 0.001 0.001 ↑ 1.0 7 1

CTE Scan on picklist_1 cte0_7 (cost=0.00..0.14 rows=7 width=4) (actual time=0.000..0.001 rows=7 loops=1)

74. 41,383.992 41,383.992 ↑ 37.9 4,268 130,962

CTE Scan on ownercte ownercte_3 (cost=0.00..3,234.02 rows=161,701 width=4) (actual time=0.000..0.316 rows=4,268 loops=130,962)

75. 0.022 65,008.303 ↑ 4,317.1 19 1

Hash Join (cost=19.68..2,787.99 rows=82,024 width=120) (actual time=64,934.951..65,008.303 rows=19 loops=1)

  • Hash Cond: (cte0.c4 = t234_opportunityforecastcategorypicklistdim.sid)
76. 65,008.267 65,008.267 ↑ 4,317.1 19 1

CTE Scan on bucketac cte0 (cost=0.00..1,640.48 rows=82,024 width=92) (actual time=64,934.923..65,008.267 rows=19 loops=1)

77. 0.004 0.014 ↑ 86.0 5 1

Hash (cost=14.30..14.30 rows=430 width=36) (actual time=0.014..0.014 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
78. 0.010 0.010 ↑ 86.0 5 1

Seq Scan on t234_opportunityforecastcategorypicklistdim (cost=0.00..14.30 rows=430 width=36) (actual time=0.009..0.010 rows=5 loops=1)

79. 0.012 101,822.565 ↑ 4,551.8 25 1

Subquery Scan on *SELECT* 2 (cost=19.68..5,282.65 rows=113,794 width=120) (actual time=101,817.778..101,822.565 rows=25 loops=1)

80. 0.026 101,822.553 ↑ 4,551.8 25 1

Hash Join (cost=19.68..3,860.22 rows=113,794 width=144) (actual time=101,817.774..101,822.553 rows=25 loops=1)

  • Hash Cond: (cte0_1.c6 = t234_opportunityforecastcategorypicklistdim_1.sid)
81. 101,822.513 101,822.513 ↑ 4,551.8 25 1

CTE Scan on bucketec cte0_1 (cost=0.00..2,275.88 rows=113,794 width=116) (actual time=101,817.743..101,822.513 rows=25 loops=1)

82. 0.005 0.014 ↑ 86.0 5 1

Hash (cost=14.30..14.30 rows=430 width=36) (actual time=0.014..0.014 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
83. 0.009 0.009 ↑ 86.0 5 1

Seq Scan on t234_opportunityforecastcategorypicklistdim t234_opportunityforecastcategorypicklistdim_1 (cost=0.00..14.30 rows=430 width=36) (actual time=0.008..0.009 rows=5 loops=1)