Skip to content

Commit

Permalink
give query hint to inperformant sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jun 2, 2024
1 parent c9f5710 commit 4b88c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/v1/user_scores.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func UserScoresRecentGET(md common.MethodData) common.CodeMessager {
beatmaps.song_name, beatmaps.ar, beatmaps.od,
beatmaps.max_combo AS beatmap_max_combo, beatmaps.hit_length, beatmaps.ranked,
beatmaps.ranked_status_freezed, beatmaps.latest_update
FROM scores
FROM scores USE INDEX (scores_idx_userid_playmode_id_desc)
INNER JOIN beatmaps ON beatmaps.beatmap_md5 = scores.beatmap_md5
INNER JOIN users ON users.id = scores.userid
AND %s
Expand Down

0 comments on commit 4b88c5d

Please sign in to comment.