You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inttotalCount=awaitdb.QuerySingleAsync<int>($"SELECT COUNT(*) FROM {databaseInfo.UserStatsTable} WHERE {Where}");
65
+
Console.WriteLine($"Processing a total of {totalCount} users");
63
66
64
67
intlastUserId=0;
65
68
inttotalUsersProcessed=0;
66
69
67
70
while(!cancellationToken.IsCancellationRequested)
68
71
{
69
-
Console.WriteLine("Fetching more users...");
72
+
if(lastUserId>0)
73
+
Console.WriteLine($"Continuing processing starting from user_id {lastUserId}...");
70
74
71
75
int[]userIds=
72
76
(awaitdb.QueryAsync<int>($"SELECT `user_id` FROM {databaseInfo.UserStatsTable} WHERE {Where} AND user_id > {lastUserId} ORDER BY user_id LIMIT {users_per_fetch}")).ToArray();
IEnumerable<ulong>multiplayerScores=db.Query<ulong>("SELECT score_id FROM multiplayer_playlist_item_scores WHERE user_id = @userId",parameters).ToHashSet();
158
162
159
-
Console.WriteLine($"Processing user {userId} ({scores.Count()} scores)..");
163
+
if(Verbose)Console.WriteLine($"Processing user {userId} ({scores.Count()} scores)..");
0 commit comments