diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-11-12 14:08:28 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-11-12 14:08:28 -0500 |
commit | c197b228eb6627bf560de1b00d84dba9c70095a0 (patch) | |
tree | 1a37b779218a9ff628b6ec7ed6fa8919a7a6358b /scripts/fixup_inboxes.php | |
parent | 50caffec3d26fb50c006f59b52446b38cb223292 (diff) |
add LOW_PRIORITY and IGNORE extensions for INSERT
darcs-hash:20081112190828-5ed1f-a9537a2e4542fbbbec555ed43792c6a5236e6029.gz
Diffstat (limited to 'scripts/fixup_inboxes.php')
-rwxr-xr-x | scripts/fixup_inboxes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php index e78e9c7f5..93355e5ed 100755 --- a/scripts/fixup_inboxes.php +++ b/scripts/fixup_inboxes.php @@ -42,7 +42,7 @@ $cnt = $user->find(); while ($user->fetch()) { common_log(LOG_INFO, 'Updating inbox for user ' . $user->id); $inbox = new Notice_inbox(); - $result = $inbox->query('INSERT INTO notice_inbox (user_id, notice_id, created) ' . + $result = $inbox->query('INSERT LOW_PRIORITY IGNORE INTO notice_inbox (user_id, notice_id, created) ' . 'SELECT ' . $user->id . ', notice.id, notice.created ' . 'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' . 'WHERE subscription.subscriber = ' . $user->id . ' ' . |