Changes between Version 1 and Version 2 of DbPurge
- Timestamp:
- May 4, 2007, 10:44:01 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DbPurge
v1 v2 2 2 3 3 As a BOINC project operates, the size of its workunit and result tables increases. Eventually they become so large that adding a field or building an index may take hours or days. 4 5 4 To address this problem, BOINC provides a utility '''db_purge''' that writes result and WU records to XML-format archive files, then deletes them from the database. 6 7 5 Workunits are purged only when their input files have been deleted. Because of BOINC's file-deletion policy, this implies that all results are completed. So when a workunit is purged, all its results are purged too. 8 6 9 Run db_purge from the project's bin/ directory. It will createan archive/ directory and store archive files there.7 db_purge creates an archive/ directory and store archive files there. 10 8 11 9 db_purge is normally run as a daemon, specified in the [ProjectConfigFile config.xml] file. It has the following command-line options: … … 23 21 '''-d N''':: 24 22 Set logging verbosity to N (1,2,3) 23 24 == Recording credited jobs == 25 26 You may want to keep a record of which user returned a valid result for each workunit 27 (e.g. so that you can give them credit for specific discoveries). 28 If you use db_purge, this information is removed from the database; 29 it can be extracted from the XML archives, but it's slow. 30 31 Alternatively, you can store the user/workunit association in 32 a separate table called '''credited_job'''. 33 This records in this table are small - they store only a user ID 34 and a 64-bit integer which is taken from the workunit's 'opaque' field 35 (typically an index in a separate database). 36 By default, the table has indices that allow you to efficiently 37 enumerate workunits for a given user and users for a given workunit. 38 39 To use the credited_job table, pass the -update_credited_job flag 40 to your validator. 41 25 42 26 43 == Archive file format ==