views:

268

answers:

0

Let's say you have a million entities persisted into the database. You want to fire your Drools rules on each persisted entity in order to check on what to do next with them.

What would be the preferable way to do that? Would you prefetch data according to the rules (which would mean that you tie your DAO to your rules), or would you just load all data at once or in chunks and process it (huge workload)? Or are there other ways to connect your rules directly to the database?

Or is this just not a use case for Drools?