Issue Details (XML | Word | Printable)

Key: MBS-3741
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Lukáš Lalinský
Reporter: Lukáš Lalinský
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Incorrect artist_credit.name

Created: 07/Nov/11 01:49 PM   Updated: 14/Nov/11 02:35 PM   Resolved: 11/Nov/11 04:40 PM
Component/s: None
Affects Version/s: Bug fixes, 2011-10-10
Fix Version/s: Bug fixes, 2011-11-14

Issue Links:
Depends
 
Relates
 


 Description  « Hide

See http://tickets.musicbrainz.org/browse/OTHER-64 for details. These two queries should return the same result, but they don't:

select * from artist_name where id = (select name from artist_credit where id=621728);
select * from artist_name where id = (select name from artist_credit_name where artist_credit=621728);

http://chatlogs.musicbrainz.org/musicbrainz-devel/2011/2011-11/2011-11-07.html#T13-07-24-92418

I assume that artist_credit.name is not correctly updated on merge.



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 07/Nov/11 09:33 PM

Do we gain a lot from this materialization? Is it best to fix the materialization, or replace it with a live view instead?


Lukáš Lalinský added a comment - 07/Nov/11 09:34 PM

It's used for sorting.



Oliver Charles added a comment - 10/Nov/11 12:42 AM

Yes, but it can be used for sorting with a sub select and join too (which can be abstracted away with a view).