-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: remove person join from actors modal #26623
Conversation
Hey @aspicer! 👋 |
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
07929e6
to
1320bac
Compare
…osthog into move-person-modal-filters-down
…osthog into move-person-modal-filters-down
ast.Constant(value=1), | ||
], | ||
select_from=ast.JoinExpr(table=ast.Field(chain=["persons"])), | ||
where=None, | ||
order_by=[ast.OrderExpr(expr=ast.Field(chain=["created_at"]), order="DESC")], | ||
order_by=[ast.OrderExpr(expr=ast.Field(chain=["id"]), order="ASC")], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to have an order_by
clause for just ids?
Guessing we add it by default here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Problem
Person modals are failing for some teams with a lot of people for OOM
I was able to fix this by changing the join mode, but this made it slow.
Changes
If we do not request any fields that require joining against persons or groups, don't do it. Just return ids. The actors modals just take the IDs and hydrate the people, so this join is superfluous.
Remove the "created at" field from the actor modal.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Tested locally. Made unit tests pass.