Commit f8765c61 authored by mmn's avatar mmn

Upgrade script for Bookmark uses joins instead of exists (performance++)

parent dcffe5d9
......@@ -355,8 +355,8 @@ class BookmarkPlugin extends MicroAppPlugin
$notice = new Notice();
$notice->whereAdd('exists (select uri from bookmark where bookmark.uri = notice.uri)');
$notice->whereAdd('((object_type is null) or (object_type = "' .ActivityObject::NOTE.'"))');
$notice->joinAdd(array('uri', 'bookmark:uri'));
$notice->whereAdd('object_type IS NULL OR object_type = '.$notice->escape(ActivityObject::NOTE));
$notice->find();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment