Changes between Version 1 and Version 2 of DbPurge


Ignore:
Timestamp:
May 4, 2007, 10:44:01 AM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DbPurge

    v1 v2  
    22
    33As 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 
    54To 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 
    75Workunits 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.
    86
    9 Run db_purge from the project's bin/ directory. It will create an archive/ directory and store archive files there.
     7db_purge creates an archive/ directory and store archive files there.
    108
    119db_purge is normally run as a daemon, specified in the [ProjectConfigFile config.xml] file. It has the following command-line options:
     
    2321 '''-d N'''::
    2422        Set logging verbosity to N (1,2,3)
     23
     24== Recording credited jobs ==
     25
     26You 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).
     28If you use db_purge, this information is removed from the database;
     29it can be extracted from the XML archives, but it's slow.
     30
     31Alternatively, you can store the user/workunit association in
     32a separate table called '''credited_job'''.
     33This records in this table are small - they store only a user ID
     34and a 64-bit integer which is taken from the workunit's 'opaque' field
     35(typically an index in a separate database).
     36By default, the table has indices that allow you to efficiently
     37enumerate workunits for a given user and users for a given workunit.
     38
     39To use the credited_job table, pass the -update_credited_job flag
     40to your validator.
     41
    2542
    2643== Archive file format ==