Retail Predictive Application Server (MOSC)

MOSC Banner

Improving time consuming rule

Hello experts,

I am looking for advice on how to improve a time consuming rule.

This custom rule takes 867.763055 seconds in the biggest local domain of our RDF domain (7889sku, 900store, 4 years)

TSI:6 867.763055 seconds for CalcEngine::evalSingleExpression

c_WpWkRecPerB = if(c_WpSprdProfMtdRPB, if(index([clnd].current) >= c_WpWkProfRPStartIdx, index([clnd].current)<= c_WpWkProfRPEndIdx, FALSE), false)


LHS measure c_WpWkRecPerB is at week_sbclss_str

RHS measure c_WpSprdProfMtdRPB, c_WpWkProfRPStartIdx and c_WpWkProfRPEndIdx are at sbclss_str


I am basically trying to identify a boolean mask at week_sbclass_store level.

I have tried to add a mask at week_partition level that was true only for past weeks (since the horizon i am trying to map is for sure in the past, since c_WpWkProfRPEndIdx is today-1), but the rule took even longer.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center