I came across this when researching slow-rendering discussion threads. The DENY check in has_access() results in many additional ProjectRole mongo queries when rendering a discussion thread.
has_access()
allura:tv/6733
Using full TMW logging to measure, this change saves 43 queries for every post in the discussion thread being rendered.
I tested the Block User functionality to make sure it still works as expected.
Log in to post a comment.
allura:tv/6733
Using full TMW logging to measure, this change saves 43 queries for every post in the discussion thread being rendered.
I tested the Block User functionality to make sure it still works as expected.