Skip to content

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

3 participants