Problem Note 37074: Query performance is slow on RPO_PLAN_MEMBER table joins
You might observe slow performance in SAS® Regular Price Optimization, when running the following query:
select pm.rpo_plan_sk,
pm.prod_hier_sk,
pm.geo_hier_sk,
pm.effective_dt as start_dt,
pm.user_price,
rl.suggested_price
from DI_DM.rpo_plan_member pm
left join DI_DM.rpo_plan_member_result rl
ON pm.rpo_plan_sk = rl.rpo_plan_sk
and pm.geo_hier_sk = rl.geo_hier_sk
and pm.prod_hier_sk = rl.prod_hier_sk
AND pm.rpo_plan_sk = COALESCE (pm.rpo_plan_sk , pm.rpo_plan_sk)
AND pm.prod_hier_sk = COALESCE (pm.prod_hier_sk , pm.prod_hier_sk)
WHERE pm.approval_status_cd = 2
and pm.effective_dt >= Date('2006-07-02')
AND pm.approval_status_cd = COALESCE(pm.approval_status_cd,
pm.approval_status_cd)
Additional indexes on the RPO_PLAN_MEMBER table will increase performance significantly.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Regular Price Optimization | Microsoft Windows 2000 Advanced Server | 3.2 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 3.2 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 3.2 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 3.2 | | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 3.2 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 3.2 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 3.2 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 3.2 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2008 | 3.2 | | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 3.2 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Windows Vista | 3.2 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled AIX | 3.2 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-09-03 15:49:45 |
Date Created: | 2009-09-03 09:05:01 |