forked from BOINC/boinc
-
Notifications
You must be signed in to change notification settings - Fork 0
DbIds
Delta edited this page Oct 18, 2023
·
1 revision
If your project processes 2^32^ jobs you'll run out of IDs in the result table. If this happens you can compress the ID space using the following queries:
alter table result add column tmpid int;
set @count = 0;
update result set tmpid = @count:= @count + 1;
update workunit inner join result on result.id = workunit.canonical_resultid set workunit.canonical_resultid = result.tmpid;
update result set id = tmpid;
alter table result auto_increment = 1;