X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fonepoll.php;h=951b87043e06d8a014f81ad365eb62d8b5abfdc3;hb=5e188a9250d42a82cd6b8e84d65875f3bc6067fb;hp=e77937272088b31884b866471cb842957692e0eb;hpb=3d6e3cbb78aa7791068ebad173a53c9cf600625a;p=friendica.git diff --git a/include/onepoll.php b/include/onepoll.php index e779372720..951b87043e 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -443,7 +443,7 @@ function onepoll_run(&$argv, &$argc){ $refs_arr[$x] = "'" . msgid2iri(str_replace(array('<','>',' '),array('','',''),dbesc($refs_arr[$x]))) . "'"; } $qstr = implode(',',$refs_arr); - $r = q("SELECT `uri` , `parent-uri` FROM `item` WHERE `uri` IN ( $qstr ) AND `uid` = %d LIMIT 1", + $r = q("SELECT `uri` , `parent-uri` FROM `item` USE INDEX (`uid_uri`) WHERE `uri` IN ($qstr) AND `uid` = %d LIMIT 1", intval($importer_uid) ); if(count($r))