-
Notifications
You must be signed in to change notification settings - Fork 72
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
Replace SQL query for style map-top to prevent duplicate rows #284
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See no issues here, but would nice when someone, who use this, can confirm this "fix".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into the code, how about merging this query into sql_selectTopSurfers
?
And as @DaLLuZZ wrote, you can and should remove the unnecessary code
Looks good for me, but test with approval would be better. 👌🏻 |
Replacing the SQL query used in
db_selectStyleMapTopSurfers
to the same one used indb_selectMapTopSurfers
. The old query brings up duplicate entries and a bunch of unnecessary rows by not searching for the right info.Old query vs New query: (Sample used was
surf_tendies
on low-gravity with a total of 30 completions.)Old query result: (First 15 rows)
New query result: (First 15 rows)