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

Bug fixes #5

Merged
merged 2 commits into from
Apr 4, 2021
Merged

Bug fixes #5

merged 2 commits into from
Apr 4, 2021

Conversation

P0nk
Copy link
Owner

@P0nk P0nk commented Apr 3, 2021

Fix previously reported bugs in HeavenMS.

P0nk added 2 commits April 3, 2021 15:39
Explained by me on Discord, 20 February 2020:

"Found a bug that causes characters to load slower based on the number of items in their inventory.
Every item causes a query to be executed in the db. On my local machine,
the specific section of code is now ~40ms faster when loading 1 character full of items.

Here is what I'm referring to:
"AND petid IS NOT NULL"
should be
"AND petid > 0" or something similar

Basically, the petid field is not a boolean. The check will always pass since -1 is not null,
and the number -1 is used to indicate if the item is a pet or not."
@P0nk P0nk marked this pull request as ready for review April 4, 2021 11:39
@P0nk P0nk merged commit 0ccea05 into master Apr 4, 2021
@P0nk P0nk deleted the bugfix branch April 4, 2021 11:40
P0nk pushed a commit that referenced this pull request Aug 11, 2022
Clean up code & Upgrading syntax
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