Skip to content

Fix sorting willplay:yes by playtime #1280

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

Merged
merged 1 commit into from
Feb 9, 2025
Merged

Conversation

dfabulich
Copy link
Collaborator

Fixes #1279

This was caused by #1265. Before that, the query did a left join to wishlists wl and added a where wl.gameid is not null. In #1265, I turned it into a subselect, gameid in (select gameid from wishlists where userid = '$curuser').

This improved performance, and usually works, but when we join to gametimes_mv, gameid is ambiguous between gametimes_mv.gameid and gameRatingsSandbox0_mv.gameid.

Using games.id ensures that we're using an unambiguous field.

@dfabulich dfabulich requested a review from salty-horse February 9, 2025 17:38
@dfabulich dfabulich merged commit 86276c5 into main Feb 9, 2025
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.

Sorting results of "willplay:yes" by playtime gives database error
2 participants