Evaluate multiple policies on multiple inputs #104
-
Hi,
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @rotemzenity! 👋 That's an interesting question. If we are we talking about querying OPA over the REST API, compiling all the inputs into a single query would likely always be faster than sending multiple requests. If we're talking about querying OPA via the Go API, I guess it would depend, but my gut feeling is that reducing the number of queries is going to be faster still. Could you provide an example of what such a policy and input might look like? |
Beta Was this translation helpful? Give feedback.
Hi @rotemzenity! 👋
That's an interesting question. If we are we talking about querying OPA over the REST API, compiling all the inputs into a single query would likely always be faster than sending multiple requests. If we're talking about querying OPA via the Go API, I guess it would depend, but my gut feeling is that reducing the number of queries is going to be faster still.
Could you provide an example of what such a policy and input might look like?