is there any way to reduce the load(build) time of the rules from a resource ? #181
Replies: 3 comments 18 replies
-
I have the same issue, I have a pretty large and complex ruleset which takes about 2min 30s to load on an intel i9. Once loaded speed is great but the slow start is frustrating. I have been trying to create a way of pre-compiling rules and loading them in one go, but haven't managed to get it to work properly yet. |
Beta Was this translation helpful? Give feedback.
-
A new PR #182 is created for this. I have not tested it on Huge rule set, as I don't have Huge set.
Or, you can make your server to start and only read rule set from a binary file. While your development PC can be used to build/produce the binary for later deployed to the server. |
Beta Was this translation helpful? Give feedback.
-
I made a test. Created 5000 dummy rules... like
From this dummy rules, I got the following result.
The content of knowledge base loaded from GRL Script, compared to loaded from Binary is identical. I will add my test code into main repo ASAP. |
Beta Was this translation helpful? Give feedback.
-
Grules is performing very well with executing of a fact against 1000's of rules so far in my project and i am very much satisfied with it. But loading rules is taking some time (~10's of seconds) for 2000 complicated rules. I know loading is one time activity which i do whenever we add/edit a new rule or container startup and not every time.
But Is there any way to make Grules building rules from resource better just like executing a fact ? instead of taking seconds ?
Beta Was this translation helpful? Give feedback.
All reactions