mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Tune claim SQL query
This commit is contained in:
parent
9f9b240f3d
commit
174d288e66
1 changed files with 2 additions and 2 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Reference in a new issue