Skip to content
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

Retrive the public Age list in one query. #169

Merged
merged 2 commits into from
Nov 14, 2022
Merged

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Nov 14, 2022

This means there is less communication required with the DB to perform what is really a single operation. Previously, the worst case scenario could result in 200 queries being sent to the DB for one public Age lookup. Now, only one query is sent to the DB server.

Previously, three additional queries would be executed for each public
Age found. Now, all information is fetched in a single query.
Don't copy the Age infos. They don't like copy cats, nor do I!
Copy link
Member

@zrax zrax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization!

@zrax zrax merged commit 464900f into H-uru:master Nov 14, 2022
@Hoikas Hoikas deleted the pub_ages_query branch November 14, 2022 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants