I have built a Drools Rules Template using Drools 6.4.0.Final
It is pretty much identical to the example provided here.
I have wrapped it in a
RestController and deployed it as a WAR in to
I notice that the first call is always very slow to get a result and gets slower as the number of rows in the
xls spreadsheet grows.
I imagine drools builds an index when the first ever
KieSession is created. And that this index is subsequently cached making further calls much faster?
I see the same behaviour when invoking directly from unit tests. First test is slow and subsequent tests are 1000 times faster.
For example, I see first call take 30secs and every subsequent call take 20ms where the spreadsheet has ~1000 rows.
Is there a way to force this "indexing" step to happen when the web application server (
Tomcat) is starting up?