explain.depesz.com

PostgreSQL's explain analyze made readable

Result: EWgR

Settings
# exclusive inclusive rows x rows loops node
1. 0.010 9,948.377 ↑ 26.5 44 1

Append (cost=5,208,002.64..5,209,136.21 rows=1,166 width=120) (actual time=6,402.336..9,948.377 rows=44 loops=1)

2.          

CTE picklist_0

3. 0.274 0.274 ↑ 1.0 6 1

Seq Scan on t35_opportunitystagenamepicklistdim (cost=0.00..70.54 rows=6 width=4) (actual time=0.006..0.274 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.289 0.289 ↑ 1.0 7 1

Seq Scan on t35_opportunitystagenamepicklistdim t35_opportunitystagenamepicklistdim_1 (cost=0.00..72.08 rows=7 width=4) (actual time=0.006..0.289 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.459 0.459 ↑ 1.0 13 1

Seq Scan on t35_opportunitystagenamepicklistdim t35_opportunitystagenamepicklistdim_2 (cost=0.00..81.31 rows=13 width=4) (actual time=0.014..0.459 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. 17.140 919.820 ↑ 3.0 8,167 1

HashAggregate (cost=430,107.40..430,351.77 rows=24,437 width=4) (actual time=918.700..919.820 rows=8,167 loops=1)

  • Group Key: distinctclosedateowner.ownerid
10. 60.049 902.680 ↑ 1.6 93,387 1

Hash Join (cost=396,409.94..429,733.02 rows=149,749 width=4) (actual time=779.710..902.680 rows=93,387 loops=1)

  • Hash Cond: (distinctclosedateowner.ownerid = t166_userrolehierarchy.sid)
11. 66.439 85.526 ↓ 1.3 196,760 1

Bitmap Heap Scan on distinctclosedateowner (cost=3,179.36..32,515.59 rows=149,749 width=4) (actual time=22.140..85.526 rows=196,760 loops=1)

  • Recheck Cond: ((closedate <= 20190131) AND (closedate >= 20181101))
  • Heap Blocks: exact=17913
12. 19.087 19.087 ↓ 1.3 196,760 1

Bitmap Index Scan on ix_closedate_distinctclosedateowner (cost=0.00..3,141.92 rows=149,749 width=0) (actual time=19.087..19.087 rows=196,760 loops=1)

  • Index Cond: ((closedate <= 20190131) AND (closedate >= 20181101))
13. 17.061 757.105 ↑ 1.6 120,705 1

Hash (cost=390,022.34..390,022.34 rows=195,539 width=4) (actual time=757.105..757.105 rows=120,705 loops=1)

  • Buckets: 131072 Batches: 4 Memory Usage: 2089kB
14. 14.915 740.044 ↑ 1.6 120,705 1

Unique (cost=383,614.07..390,022.34 rows=195,539 width=4) (actual time=709.524..740.044 rows=120,705 loops=1)

15. 70.164 725.129 ↑ 9.9 129,585 1

Sort (cost=383,614.07..386,818.21 rows=1,281,655 width=4) (actual time=709.523..725.129 rows=129,585 loops=1)

  • Sort Key: t166_userrolehierarchy.sid
  • Sort Method: external merge Disk: 1768kB
16. 199.107 654.965 ↑ 9.9 129,585 1

Hash Join (cost=59,587.89..236,068.38 rows=1,281,655 width=4) (actual time=147.390..654.965 rows=129,585 loops=1)

  • Hash Cond: (t166_userrolehierarchy.c662_user_role_id = t67_userroledim.sid)
17. 316.368 443.951 ↓ 1.0 1,321,404 1

Bitmap Heap Scan on t166_userrolehierarchy (cost=37,190.07..194,345.90 rows=1,281,655 width=8) (actual time=134.782..443.951 rows=1,321,404 loops=1)

  • Recheck Cond: ((c663_ancestor_role_id = ANY ('{436,247157}'::integer[])) AND (end_stamp = '32503680000000'::bigint))
  • Heap Blocks: exact=39203
18. 127.583 127.583 ↓ 1.0 1,322,634 1

Bitmap Index Scan on ix_t166_userrolehierarchy_ancestor_end_start_timestamp (cost=0.00..36,869.66 rows=1,281,655 width=0) (actual time=127.583..127.583 rows=1,322,634 loops=1)

  • Index Cond: ((c663_ancestor_role_id = ANY ('{436,247157}'::integer[])) AND (end_stamp = '32503680000000'::bigint))
19. 1.376 11.907 ↑ 9.3 8,370 1

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

  • Buckets: 131072 Batches: 2 Memory Usage: 1177kB
20. 6.079 10.531 ↑ 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.886..10.531 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: 5524
  • Heap Blocks: exact=2139
21. 4.452 4.452 ↑ 5.7 13,915 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.452..4.452 rows=13,915 loops=1)

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

CTE closedatecte

23. 0.022 0.022 ↑ 1.0 12 1

Values Scan on "*VALUES*" (cost=0.00..0.15 rows=12 width=8) (actual time=0.002..0.022 rows=12 loops=1)

24.          

CTE bucketac

25. 234.612 6,402.324 ↑ 1,043.5 19 1

HashAggregate (cost=1,707,412.79..1,707,958.03 rows=19,827 width=92) (actual time=6,402.288..6,402.324 rows=19 loops=1)

  • Group Key: t21_opp_line_item_fact.c320_opp_forecastcategory, CASE WHEN (t21_opp_line_item_fact_1.sid IS NULL) THEN 'deleted'::text WHEN ((t21_opp_line_item_fact_1.c270_opp_close_date < 20181101) OR (t21_opp_line_item_fact_1.c270_opp_close_date > 20190131)) THEN 'slipped'::text WHEN (hashed SubPlan 6) THEN CASE WHEN (hashed SubPlan 7) THEN 'won'::text WHEN (hashed SubPlan 8) THEN 'lost'::text ELSE CASE WHEN (t34_opportunityforecastcategorypicklistdim_2.correlated_app_order = t34_opportunityforecastcategorypicklistdim_3.correlated_app_order) THEN 'unchanged'::text WHEN (t34_opportunityforecastcategorypicklistdim_2.correlated_app_order > t34_opportunityforecastcategorypicklistdim_3.correlated_app_order) THEN 'upgraded'::text ELSE 'downgraded'::text END END ELSE 'lostOwnership'::text END
26. 313.176 6,167.712 ↓ 1.8 418,251 1

Nested Loop (cost=1,103.60..1,702,698.99 rows=237,924 width=72) (actual time=926.763..6,167.712 rows=418,251 loops=1)

27. 0.050 0.050 ↑ 1.0 12 1

CTE Scan on closedatecte (cost=0.00..0.24 rows=12 width=8) (actual time=0.003..0.050 rows=12 loops=1)

28. 163.914 5,853.348 ↓ 1.8 34,854 12

Nested Loop Left Join (cost=553.47..141,102.21 rows=19,827 width=84) (actual time=77.021..487.779 rows=34,854 loops=12)

29. 208.590 4,852.932 ↓ 2.1 34,854 12

Nested Loop Left Join (cost=553.47..135,448.98 rows=16,853 width=60) (actual time=77.017..404.411 rows=34,854 loops=12)

30. 119.178 3,807.840 ↓ 2.4 34,854 12

Hash Left Join (cost=553.47..128,170.32 rows=14,325 width=60) (actual time=77.013..317.320 rows=34,854 loops=12)

  • Hash Cond: (t21_opp_line_item_fact_1.c320_opp_forecastcategory = t34_opportunityforecastcategorypicklistdim_3.sid)
31. 331.191 3,688.656 ↓ 2.4 34,854 12

Nested Loop Left Join (cost=552.36..127,978.97 rows=14,325 width=60) (actual time=77.011..307.388 rows=34,854 loops=12)

32. 103.072 2,102.712 ↓ 2.4 34,854 12

Hash Left Join (cost=551.80..6,580.98 rows=14,325 width=28) (actual time=77.004..175.226 rows=34,854 loops=12)

  • Hash Cond: (t21_opp_line_item_fact.c320_opp_forecastcategory = t34_opportunityforecastcategorypicklistdim_2.sid)
33. 78.576 1,999.632 ↓ 2.4 34,854 12

Nested Loop (cost=550.69..6,389.63 rows=14,325 width=24) (actual time=77.001..166.636 rows=34,854 loops=12)

34. 19.637 941.016 ↓ 40.8 8,167 12

HashAggregate (cost=549.83..551.83 rows=200 width=4) (actual time=76.940..78.418 rows=8,167 loops=12)

  • Group Key: ownercte_1.c1
35. 921.379 921.379 ↑ 3.0 8,167 1

CTE Scan on ownercte ownercte_1 (cost=0.00..488.74 rows=24,437 width=4) (actual time=918.702..921.379 rows=8,167 loops=1)

36. 979.575 980.040 ↓ 1.3 4 98,004

Index Scan using ix_t21_opp_line_item_fact_owner_closedate_timestamp on t21_opp_line_item_fact (cost=0.85..29.16 rows=3 width=28) (actual time=0.006..0.010 rows=4 loops=98,004)

  • Index Cond: ((c268_opp_ownerid = ownercte_1.c1) AND (c270_opp_close_date >= closedatecte.c1) AND (c270_opp_close_date <= closedatecte.c2) AND (start_stamp <= '1541055600000'::bigint) AND (end_stamp > '1541055600000'::bigint))
  • Filter: ((NOT deleted) AND (NOT (hashed SubPlan 9)))
  • Rows Removed by Filter: 2
37.          

SubPlan (forIndex Scan)

38. 0.465 0.465 ↑ 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.465 rows=13 loops=1)

39. 0.004 0.008 ↑ 1.0 5 1

Hash (cost=1.05..1.05 rows=5 width=8) (actual time=0.008..0.008 rows=5 loops=1)

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

Seq Scan on t34_opportunityforecastcategorypicklistdim t34_opportunityforecastcategorypicklistdim_2 (cost=0.00..1.05 rows=5 width=8) (actual time=0.004..0.004 rows=5 loops=1)

41. 1,254.753 1,254.753 ↑ 1.0 1 418,251

Index Scan using ix_t21_opp_line_item_fact_sid_timestamp on t21_opp_line_item_fact t21_opp_line_item_fact_1 (cost=0.56..8.46 rows=1 width=32) (actual time=0.003..0.003 rows=1 loops=418,251)

  • Index Cond: ((t21_opp_line_item_fact.sid = sid) AND (t21_opp_line_item_fact.sid = sid) AND (start_stamp <= '1542009599999'::bigint) AND (end_stamp > '1542009599999'::bigint))
  • Filter: (NOT deleted)
42. 0.004 0.006 ↑ 1.0 5 1

Hash (cost=1.05..1.05 rows=5 width=8) (actual time=0.006..0.006 rows=5 loops=1)

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

Seq Scan on t34_opportunityforecastcategorypicklistdim t34_opportunityforecastcategorypicklistdim_3 (cost=0.00..1.05 rows=5 width=8) (actual time=0.001..0.002 rows=5 loops=1)

44. 0.000 836.502 ↑ 2.0 1 418,251

Append (cost=0.00..0.49 rows=2 width=16) (actual time=0.002..0.002 rows=1 loops=418,251)

45. 0.000 0.000 ↓ 0.0 0 418,251

Seq Scan on clari_conversion_rate cur177_t0_r0 (cost=0.00..0.00 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=418,251)

  • Filter: ((to_iso_code = 'USD'::text) AND (t21_opp_line_item_fact.c323_opp_currency_code = sid) AND (t21_opp_line_item_fact.c270_opp_close_date = rate_date))
46. 836.502 836.502 ↑ 1.0 1 418,251

Index Scan using ix_usd_clari_conversion_rate_date_isocode on usd_clari_conversion_rate cur177_t0_r0_1 (cost=0.29..0.49 rows=1 width=16) (actual time=0.001..0.002 rows=1 loops=418,251)

  • Index Cond: ((t21_opp_line_item_fact.c270_opp_close_date = rate_date) AND (t21_opp_line_item_fact.c323_opp_currency_code = sid))
  • Filter: (to_iso_code = 'USD'::text)
47. 418.251 836.502 ↑ 2.0 1 418,251

Append (cost=0.00..0.32 rows=2 width=16) (actual time=0.002..0.002 rows=1 loops=418,251)

48. 0.000 0.000 ↓ 0.0 0 418,251

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=418,251)

  • Filter: ((to_iso_code = 'USD'::text) AND (t21_opp_line_item_fact_1.c323_opp_currency_code = sid) AND (t21_opp_line_item_fact_1.c270_opp_close_date = rate_date))
49. 418.251 418.251 ↑ 1.0 1 418,251

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.001..0.001 rows=1 loops=418,251)

  • Index Cond: ((t21_opp_line_item_fact_1.c270_opp_close_date = rate_date) AND (t21_opp_line_item_fact_1.c323_opp_currency_code = sid))
  • Filter: (to_iso_code = 'USD'::text)
50.          

SubPlan (forNested Loop)

51. 0.570 0.570 ↑ 3.0 8,167 1

CTE Scan on ownercte (cost=0.00..488.74 rows=24,437 width=4) (actual time=0.001..0.570 rows=8,167 loops=1)

52. 0.276 0.276 ↑ 1.0 6 1

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

53. 0.292 0.292 ↑ 1.0 7 1

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

54.          

CTE bucketec

55. 21.032 3,545.921 ↑ 1,072.1 25 1

GroupAggregate (cost=3,063,168.94..3,069,467.64 rows=26,803 width=116) (actual time=3,510.968..3,545.921 rows=25 loops=1)

  • Group Key: (CASE WHEN (t21_opp_line_item_fact_3.sid IS NULL) THEN 'newBucket'::text WHEN (NOT (hashed SubPlan 11)) THEN CASE WHEN (t21_opp_line_item_fact_3.c270_opp_close_date > 20190131) THEN 'pulledInBucket'::text WHEN (t21_opp_line_item_fact_3.c270_opp_close_date < 20181101) THEN 'pushedInBucket'::text WHEN (hashed SubPlan 12) THEN 'otherBucket'::text ELSE 'gainedOwnershipBucket'::text END ELSE 'otherBucket'::text END), (CASE WHEN (hashed SubPlan 13) THEN 'won'::text WHEN (hashed SubPlan 14) THEN 'lost'::text ELSE 'newOpen'::text END), t21_opp_line_item_fact_2.c320_opp_forecastcategory
56. 160.554 3,524.889 ↑ 4.1 78,264 1

Sort (cost=3,062,618.52..3,063,422.61 rows=321,636 width=88) (actual time=3,510.951..3,524.889 rows=78,264 loops=1)

  • Sort Key: (CASE WHEN (t21_opp_line_item_fact_3.sid IS NULL) THEN 'newBucket'::text WHEN (NOT (hashed SubPlan 11)) THEN CASE WHEN (t21_opp_line_item_fact_3.c270_opp_close_date > 20190131) THEN 'pulledInBucket'::text WHEN (t21_opp_line_item_fact_3.c270_opp_close_date < 20181101) THEN 'pushedInBucket'::text WHEN (hashed SubPlan 12) THEN 'otherBucket'::text ELSE 'gainedOwnershipBucket'::text END ELSE 'otherBucket'::text END), (CASE WHEN (hashed SubPlan 13) THEN 'won'::text WHEN (hashed SubPlan 14) THEN 'lost'::text ELSE 'newOpen'::text END), t21_opp_line_item_fact_2.c320_opp_forecastcategory
  • Sort Method: external merge Disk: 4304kB
57. 39.739 3,364.335 ↑ 4.1 78,264 1

Nested Loop (cost=1,651.21..3,017,803.76 rows=321,636 width=88) (actual time=2.558..3,364.335 rows=78,264 loops=1)

58. 0.017 0.017 ↑ 1.0 12 1

CTE Scan on closedatecte closedatecte_1 (cost=0.00..0.24 rows=12 width=8) (actual time=0.000..0.017 rows=12 loops=1)

59. 33.936 3,323.976 ↑ 4.1 6,522 12

Nested Loop Left Join (cost=1,100.79..250,499.65 rows=26,803 width=44) (actual time=0.501..276.998 rows=6,522 loops=12)

60. 145.092 3,133.512 ↑ 3.5 6,522 12

Nested Loop Left Join (cost=1,100.79..240,846.79 rows=22,782 width=44) (actual time=0.496..261.126 rows=6,522 loops=12)

  • Filter: ((t21_opp_line_item_fact_3.sid IS NULL) OR (t21_opp_line_item_fact_3.c270_opp_close_date < 20181101) OR (t21_opp_line_item_fact_3.c270_opp_close_date > 20190131) OR (NOT (hashed SubPlan 15)))
  • Rows Removed by Filter: 48704
61. 195.288 999.696 ↓ 2.0 55,226 12

Nested Loop (cost=550.39..6,334.13 rows=27,954 width=28) (actual time=0.217..83.308 rows=55,226 loops=12)

62. 19.778 20.376 ↓ 40.8 8,167 12

HashAggregate (cost=549.83..551.83 rows=200 width=4) (actual time=0.209..1.698 rows=8,167 loops=12)

  • Group Key: ownercte_4.c1
63. 0.598 0.598 ↑ 3.0 8,167 1

CTE Scan on ownercte ownercte_4 (cost=0.00..488.74 rows=24,437 width=4) (actual time=0.001..0.598 rows=8,167 loops=1)

64. 784.032 784.032 ↓ 1.2 7 98,004

Index Scan using ix_t21_opp_line_item_fact_owner_closedate_timestamp on t21_opp_line_item_fact t21_opp_line_item_fact_2 (cost=0.56..28.85 rows=6 width=32) (actual time=0.005..0.008 rows=7 loops=98,004)

  • Index Cond: ((c268_opp_ownerid = ownercte_4.c1) AND (c270_opp_close_date >= closedatecte_1.c1) AND (c270_opp_close_date <= closedatecte_1.c2) AND (start_stamp <= '1542009599999'::bigint) AND (end_stamp > '1542009599999'::bigint))
  • Filter: (NOT deleted)
  • Rows Removed by Filter: 0
65. 1,988.139 1,988.139 ↑ 1.0 1 662,713

Index Scan using ix_t21_opp_line_item_fact_sid_timestamp on t21_opp_line_item_fact t21_opp_line_item_fact_3 (cost=0.56..8.35 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=662,713)

  • Index Cond: ((t21_opp_line_item_fact_2.sid = sid) AND (t21_opp_line_item_fact_2.sid = sid) AND (start_stamp <= '1541055600000'::bigint) AND (end_stamp > '1541055600000'::bigint))
  • Filter: (NOT deleted)
66.          

SubPlan (forNested Loop Left Join)

67. 0.585 0.585 ↑ 3.0 8,167 1

CTE Scan on ownercte ownercte_3 (cost=0.00..488.74 rows=24,437 width=4) (actual time=0.001..0.585 rows=8,167 loops=1)

68. 0.000 156.528 ↑ 2.0 1 78,264

Append (cost=0.00..0.40 rows=2 width=16) (actual time=0.002..0.002 rows=1 loops=78,264)

69. 0.000 0.000 ↓ 0.0 0 78,264

Seq Scan on clari_conversion_rate cur177_t0_r0_2 (cost=0.00..0.00 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=78,264)

  • Filter: ((to_iso_code = 'USD'::text) AND (t21_opp_line_item_fact_2.c323_opp_currency_code = sid) AND (t21_opp_line_item_fact_2.c270_opp_close_date = rate_date))
70. 156.528 156.528 ↑ 1.0 1 78,264

Index Scan using ix_usd_clari_conversion_rate_date_isocode on usd_clari_conversion_rate cur177_t0_r0_3 (cost=0.29..0.40 rows=1 width=16) (actual time=0.001..0.002 rows=1 loops=78,264)

  • Index Cond: ((t21_opp_line_item_fact_2.c270_opp_close_date = rate_date) AND (t21_opp_line_item_fact_2.c323_opp_currency_code = sid))
  • Filter: (to_iso_code = 'USD'::text)
71.          

SubPlan (forNested Loop)

72. 0.001 0.001 ↑ 1.0 13 1

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

73. 0.600 0.600 ↑ 3.0 8,167 1

CTE Scan on ownercte ownercte_2 (cost=0.00..488.74 rows=24,437 width=4) (actual time=0.000..0.600 rows=8,167 loops=1)

74. 0.001 0.001 ↑ 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.001 rows=6 loops=1)

75. 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.001..0.001 rows=7 loops=1)

76. 0.036 6,402.384 ↑ 26.1 19 1

Hash Join (cost=1.11..476.96 rows=496 width=96) (actual time=6,402.336..6,402.384 rows=19 loops=1)

  • Hash Cond: (cte0.c4 = t34_opportunityforecastcategorypicklistdim.sid)
77. 6,402.336 6,402.336 ↑ 1,043.5 19 1

CTE Scan on bucketac cte0 (cost=0.00..396.54 rows=19,827 width=92) (actual time=6,402.291..6,402.336 rows=19 loops=1)

78. 0.005 0.012 ↑ 1.0 5 1

Hash (cost=1.05..1.05 rows=5 width=12) (actual time=0.012..0.012 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
79. 0.007 0.007 ↑ 1.0 5 1

Seq Scan on t34_opportunityforecastcategorypicklistdim (cost=0.00..1.05 rows=5 width=12) (actual time=0.006..0.007 rows=5 loops=1)

80. 0.017 3,545.983 ↑ 26.8 25 1

Subquery Scan on *SELECT* 2 (cost=1.11..652.76 rows=670 width=96) (actual time=3,510.997..3,545.983 rows=25 loops=1)

81. 0.024 3,545.966 ↑ 26.8 25 1

Hash Join (cost=1.11..644.38 rows=670 width=120) (actual time=3,510.991..3,545.966 rows=25 loops=1)

  • Hash Cond: (cte0_1.c6 = t34_opportunityforecastcategorypicklistdim_1.sid)
82. 3,545.931 3,545.931 ↑ 1,072.1 25 1

CTE Scan on bucketec cte0_1 (cost=0.00..536.06 rows=26,803 width=116) (actual time=3,510.970..3,545.931 rows=25 loops=1)

83. 0.004 0.011 ↑ 1.0 5 1

Hash (cost=1.05..1.05 rows=5 width=12) (actual time=0.011..0.011 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
84. 0.007 0.007 ↑ 1.0 5 1

Seq Scan on t34_opportunityforecastcategorypicklistdim t34_opportunityforecastcategorypicklistdim_1 (cost=0.00..1.05 rows=5 width=12) (actual time=0.006..0.007 rows=5 loops=1)