Caching compiled rego #285
Replies: 2 comments 2 replies
-
I'm confused about some things here. The What is it that you're seeing that makes you think the server did compile policies for every query? |
Beta Was this translation helpful? Give feedback.
-
Just to clarify, OPA server does not compile a rego file on every request but only compiles when a policy is changed. Is that right? |
Beta Was this translation helpful? Give feedback.
-
Write now eval command compiles and executes the rego files. Majority of the time is taken by compilation step. Its a bottleneck if the policy is heavy or complex in nature. Is there any plan in the near future to cache the compiled rego so that whenever an eval request comes in OPA server, it can use the cached compiled rego and just perform the execution step to give the result.
Beta Was this translation helpful? Give feedback.
All reactions