We have a requirement to process rules on historical data that will grow with time , at the time of eCommerce checkout we want to show to the user how much discount (based on his historical orders) he is getting. Since the number of old orders will be huge it doesn't make sense to load all historical orders from DB and then insert into rules memory & fire-rules
How this scenario can be handled ? Is there any way to load facts prior to executing rules ?