Skip to content

Commit 933985b

Browse files
authored
Merge pull request #39 from peppy/reduce-bss-query-data
Reduce data received when querying database via `BeatmapStatusWatcher`
2 parents 0922bb8 + af71800 commit 933985b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

osu.Server.QueueProcessor/BeatmapStatusWatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static async Task<BeatmapUpdates> GetUpdatedBeatmapSetsAsync(int? lastQue
5656

5757
if (lastQueueId.HasValue)
5858
{
59-
var items = (await connection.QueryAsync<bss_process_queue_item>("SELECT * FROM bss_process_queue WHERE queue_id > @lastQueueId ORDER BY queue_id LIMIT @limit", new
59+
var items = (await connection.QueryAsync<bss_process_queue_item>("SELECT queue_id, beatmapset_id FROM bss_process_queue WHERE queue_id > @lastQueueId ORDER BY queue_id LIMIT @limit", new
6060
{
6161
lastQueueId,
6262
limit
@@ -69,7 +69,7 @@ public static async Task<BeatmapUpdates> GetUpdatedBeatmapSetsAsync(int? lastQue
6969
};
7070
}
7171

72-
var lastEntry = await connection.QueryFirstOrDefaultAsync<bss_process_queue_item>("SELECT * FROM bss_process_queue ORDER BY queue_id DESC LIMIT 1");
72+
var lastEntry = await connection.QueryFirstOrDefaultAsync<bss_process_queue_item>("SELECT queue_id, beatmapset_id FROM bss_process_queue ORDER BY queue_id DESC LIMIT 1");
7373

7474
return new BeatmapUpdates
7575
{

0 commit comments

Comments
 (0)