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

Remedy db connection type query at every login #2298

Merged

Conversation

woogerboy21
Copy link
Contributor

Fix #2285
This change adds an internal counter for each tcp/web socket connection
that the server makes and queries the stored memory count at login
rather than the previous way that quired the database during each login.
Each login that quired the DB put a significant load on the server as
the user base grew.

Fix Cockatrice#2285
This change adds an internal counter for each tcp/web socket connection
that the server makes and queries the stored memory count at login
rather than the previous way that quired the database during each login.
Each login that quired the DB put a significant load on the server as
the user base grew.
@woogerboy21 woogerboy21 changed the title Remedy connection type query at every login Remedy db connection type query at every login Dec 6, 2016
Copy link
Member

@ZeldaZach ZeldaZach left a comment

Choose a reason for hiding this comment

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

This looks good to me, seems helpful to prevent over querying of the database

@woogerboy21 woogerboy21 merged commit f86b9e0 into Cockatrice:master Dec 7, 2016
@woogerboy21 woogerboy21 deleted the remove_connectiontype_query_atlogin branch December 7, 2016 22:19
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.

None yet

2 participants