Tune claim SQL query

This commit is contained in:
Justine Tunney 2022-10-04 10:22:08 -07:00
parent 9f9b240f3d
commit 174d288e66
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -1194,8 +1194,8 @@ StartOver:
"ON CONFLICT (ip) DO\n"
"UPDATE SET (nick, created) = (?2, ?3)\n"
"WHERE nick != ?2\n"
" AND (created IS NULL\n"
" OR (?3 - created) > 3600)",
" OR created IS NULL\n"
" OR ?3 - created > 3600",
-1, &stmt, 0));
LOG("ClaimWorker started\n");
while ((n = GetClaims(&g_claims, v, BATCH_MAX, nsync_time_no_deadline))) {