Closed
Bug 520597
Opened 15 years ago
Closed 15 years ago
last_modified column for personas
Categories
(Mozilla Labs Graveyard :: Personas Plus, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jbalogh, Assigned: telliott)
Details
When AMO starts importing personas, we'll have to compare all the strings in each Persona between the AMO and personas databases to make sure they're in sync. I'd rather not check all 60,000 personas every time, so a last_modified column would be super helpful for ensuring we only do useful work. We're going into code freeze on 10/13. Thanks!
Assignee | ||
Comment 1•15 years ago
|
||
Can you do it out of the log table? We log every approval, edit approval and delete, which are the three triggers you care about.
Reporter | ||
Comment 2•15 years ago
|
||
That could probably work. What would the query look like to get all the persona ids that were updated since yesterday?
Assignee | ||
Comment 3•15 years ago
|
||
select distinct(id) from log where (action = 'EditApproved' or action = 'Approved' or action = 'Pulled') and date > date_sub(NOW(), interval 1 day);
Reporter | ||
Comment 4•15 years ago
|
||
Thanks! Pulled means that I should remove AMO's copy of the persona, right?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•15 years ago
|
||
Yes. If it goes back in, it'll have a followup "Approved"
Updated•8 years ago
|
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•