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

Feat: Friends list refactoring #621

Merged

Conversation

RyanYappert
Copy link
Collaborator

@RyanYappert RyanYappert commented Nov 1, 2024

Refactors some of handlers and especially the DB calls relating to the friends/contact list. Originally, these do one query to get a list of contacts, and then for each of those, a separate query to get the Character object associated with it. This is not only many queries not done in a transaction, but contained multiple subqueries for unneeded information. This has been moved into a single query with joins so it should run quite a bit faster.

The various friends list handlers have also been moved to the GameRequestPacketHandler framework as well.

Checklist:

  • The project compiles
  • The PR targets develop branch

@RyanYappert RyanYappert force-pushed the feat/friends-refactor branch from fff8860 to dc0fdf3 Compare November 1, 2024 09:01
@RyanYappert RyanYappert mentioned this pull request Nov 8, 2024
2 tasks
@RyanYappert RyanYappert force-pushed the feat/friends-refactor branch from d6b633d to 7b72874 Compare November 9, 2024 05:24
@RyanYappert RyanYappert force-pushed the feat/friends-refactor branch from 7b72874 to 5a0ea53 Compare November 9, 2024 06:30
@RyanYappert RyanYappert merged commit bd8ca09 into sebastian-heinz:develop Nov 9, 2024
1 check passed
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.

1 participant