Remove duplicate queries #18
Labels
No labels
backend
beginner friendly
frontend
size/extra-large
size/large
size/medium
size/small
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/tartan-vote#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
get_vote_instancesinvotes/handlers.rslooks up the event twice (once to check existence, once to use it).user_name_by_idis called in a loop inlist_proxy_assignments(N+1 queries), whileexport_event_resultshas its own ad-hoc name cache.Tasks
get_vote_instancesinto one.HashMapcache) and use it in bothlist_proxy_assignmentsandexport_event_results.Files:
votes/handlers.rsCommit chain should just have the two parts be in different commits, nothing complicated.