]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
ping.php improvement: datetime.php formatting
[friendica.git] / include / onepoll.php
index e77937272088b31884b866471cb842957692e0eb..951b87043e06d8a014f81ad365eb62d8b5abfdc3 100644 (file)
@@ -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))