Performance on rules

I want to implement rules on my project with convex-ents but I am concerned about the performance impact this will have.

In my schema I have a chat and a message table.

To protect my messages I want to make sure that the message can only be read if the user that wants to access the message is in a chat that the message lives in.

But then if I load a chat with this:
    return ctx
      .table("privateChats")
      .getX(parsedChatId)
      .edge("messages")


Will every message checked if the message is in the chat?

If yes that would make the rules feature unusable for me.
Was this page helpful?