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
Improve trigger assign_unassigned method #38664
Conversation
Do we even need to do this outside of |
Yes, we can do that, but I think keeping it like this will keep the unit tests simple, as we can pass the IDs in a list instead of setting up the trigger table. |
Maybe let’s add some annotation or docstring on |
…get_sorted_triggers queries
cc2685a
to
ecddbe5
Compare
…get_sorted_triggers queries (apache#38664)
…get_sorted_triggers queries (apache#38664)
…get_sorted_triggers queries (apache#38664)
…get_sorted_triggers queries (apache#38664)
Improve trigger
assign_unassigned
method by mergingalive_triggerer_ids
andget_sorted_triggers
queries to reduce latency and memory usage.