-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replication file missed key information #33
Comments
Yes, kevin00036 is right. I have hold duplicate key violation: This error produced by this update statment from an update file: But when we run There can be more than 3 rows with the same track_id or mbid. When the update file contains something like this: So i think it is need to remake an export algorithm and set unique values for the XML constructions, then create a newly one fulldump and start an hourly export process again. |
To explain my reason for not being interested: The PostgreSQL-based replication was a failed experiment from my point of view. It was never actually used. I created it because I hoped that giving somebody access to the PostgreSQL database would mean that external contributors could get interested working on AcoustID. That never happened. The same applies to the PostgreSQL database dumps. It's hard to generate them at this size, I need a dedicated server just to do those dumps. The only interest in the replication is from various companies and to support those, it's far easier to just point them to the running service. Supporting the PostgreSQL database as a standalone product it just too hard for me to do and I'm not going to do it for free for the few companies that are interested in that. I'm currently trying to slowly rework the AcoustID backend, which will involve a lot of database changes. I'm going to change the data files to a database-neutral format and only include data that people need to experiment with the fingerprint database. That is, it will only include fingerprints and the mapping between fingerprints and MusicBrainz. I'm open to discussing the details of that. |
In replication files, there exists these types of updates:
<event id="335617599" op="U" table="track_mbid"><keys><column name="track_id">9578103</column></keys><values><column name="submission_count">112</column></values></event>
For table
track_mbid
, it always uses onlytrack_id
as key, but the unique key should be(track_id, mbid)
, or use primary keyid
.Also, one
track_id
can correspond to manymbid
s. In this case, this update doesn't tell which(track_id, mbid)
to update.The text was updated successfully, but these errors were encountered: