|
[ Home ] [ RctReader Pages ] [ Projects ] [ Pictures ] [ DVD Case Reviews ] |
These instructions have been updated to work with the new postgresql database format.
Access will delete any information in the tables, then import the new data from the downloaded file. The Track file should be the only table that gives you error messages. These can be safely ignored, and the tracks_import_errors table can be deleted.
Now comes the fun part. There are several pre-made queries that can be used to discover errors in the database. I suggest running the make-table first. The tables they create are great to browse through.
I discovered a checksum that is very useful in discovering bad albums. We first calculate the number of tracks on an album by counting the number of tracks listed in the Albumjoin table, grouped by album. Say an album has 13 tracks. These tracks should be numbered from 1 to 13. To create the checksum, just add 1+2+3..13, which equals 91. We take the Sequence value in the Albumjoin table, and add up the values for each album. That value is compared to the checksum value for the number of tracks.
This checksum is incorporated in the MakeCountOfTracksByAlbum and updatecorrectsum queries. The MakeCountOfTracksByAlbum query must be run before the updatecorrectsum query. After these are run, the countoftracksbyalbum table is ready to browse, either directly, or by using the badtrackcount queries.
When you find an error in the database, you can copy either the album or artist id, and paste it into TheID field in the ToBeFixed table. In the Album0Artist1 field, enter 0 if it's an album id, or 1 if it's an Artist id. Once you have several entries in ToBeFixed, you can run the MakeToBeFixedPage Macro. This creates \download\mbdump\ToBeFixed.htm that contains links to the records in the musicbrainz.org database which need to be fixed.