Comment 4 for bug 1484343

Revision history for this message
John Garbutt (johngarbutt) wrote : Re: Multiple record for same user and resource in quota_usage tabel

Seems like a very good idea.

Given the use of first, I suspect that caused issues where we just update one copy, and leave the other. Not sure if the order is always deterministic.

Just need to be sure to clean out duplicates, I think it's safe to delete the one we would not access using first. Need this in the script before adding the constraint, similar to what has been done for uuid constraints previously.