mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-22 11:14:33 -04:00
Hack temporaire en attendant la recherche côté base-de-données
Limite la recherche aux 20000 plus récents articles, en attendant https://github.com/marienfressinaud/FreshRSS/issues/204
This commit is contained in:
1 parent
dd5273871a
commit
2906d8dd2e
1 file changed
+5
-2
@@ -412,9 +412,12 @@ class EntryDAO extends Model_pdo {
|
||||
. ' INNER JOIN ' . $this->prefix . 'feed f ON e.id_feed = f.id' . $where
|
||||
. ' ORDER BY e.date' . $order . ', e.id' . $order;
|
||||
|
||||
if (!empty($limitCount)) {
|
||||
$sql .= ' LIMIT ' . ($limitCount + 2); //TODO: See http://explainextended.com/2009/10/23/mysql-order-by-limit-performance-late-row-lookups/
|
||||
if (empty($limitCount)) {
|
||||
$limitCount = 20000; //TODO: FIXME: Hack temporaire en attendant la recherche côté base-de-données
|
||||
}
|
||||
//if (!empty($limitCount)) {
|
||||
$sql .= ' LIMIT ' . ($limitCount + 2); //TODO: See http://explainextended.com/2009/10/23/mysql-order-by-limit-performance-late-row-lookups/
|
||||
//}
|
||||
|
||||
$stm = $this->bd->prepare ($sql);
|
||||
$stm->execute ($values);
|
||||
|
||||
Reference in new issue
Block a user