Skip to content

Commit 23b1124

Browse files
authored
[v5.2.2] Significantly optimize performance for fetching leaderboards (#642)
* Significantly optimize performance for fetching leaderboards * v5.2.2 * bump ver
1 parent 8965739 commit 23b1124

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

migrations/base.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ create index scores_userid_index
254254
on scores (userid);
255255
create index scores_online_checksum_index
256256
on scores (online_checksum);
257-
257+
create index scores_fetch_leaderboard_generic_index
258+
on scores (map_md5, status, mode);
258259

259260
create table startups
260261
(

migrations/migrations.sql

+4
Original file line numberDiff line numberDiff line change
@@ -471,3 +471,7 @@ create index users_clan_priv_index
471471
on users (clan_priv);
472472
create index users_country_index
473473
on users (country);
474+
475+
# v5.2.2
476+
create index scores_fetch_leaderboard_generic_index
477+
on scores (map_md5, status, mode);

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ profile = "black"
3434

3535
[tool.poetry]
3636
name = "bancho-py"
37-
version = "5.2.1"
37+
version = "5.2.2"
3838
description = "An osu! server implementation optimized for maintainability in modern python"
3939
authors = ["Akatsuki Team"]
4040
license = "MIT"

0 commit comments

Comments
 (0)