mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-09 10:15:44 +02:00
make cleanup faster
This commit is contained in:
parent
f11e4cff46
commit
5b8fff99a5
@ -242,7 +242,7 @@ class ItemMapper extends NewsMapper {
|
||||
'FROM `*PREFIX*news_items` `items` ' .
|
||||
'JOIN `*PREFIX*news_feeds` `feeds` ' .
|
||||
'ON `feeds`.`id` = `items`.`feed_id` ' .
|
||||
'WHERE NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'AND NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' .
|
||||
'HAVING COUNT(*) > ?';
|
||||
$params = [$status, $threshold];
|
||||
|
@ -36,7 +36,7 @@ class ItemMapper extends \OCA\News\Db\ItemMapper {
|
||||
'FROM `*PREFIX*news_items` `items` ' .
|
||||
'JOIN `*PREFIX*news_feeds` `feeds` ' .
|
||||
'ON `feeds`.`id` = `items`.`feed_id` ' .
|
||||
'WHERE NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'AND NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' .
|
||||
'HAVING COUNT(*) > ?';
|
||||
$params = [$status, $threshold];
|
||||
|
@ -366,7 +366,7 @@ class ItemMapperTest extends \Test\AppFramework\Db\MapperTestUtility {
|
||||
'FROM `*PREFIX*news_items` `items` ' .
|
||||
'JOIN `*PREFIX*news_feeds` `feeds` ' .
|
||||
'ON `feeds`.`id` = `items`.`feed_id` ' .
|
||||
'WHERE NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'AND NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' .
|
||||
'HAVING COUNT(*) > ?';
|
||||
|
||||
@ -390,7 +390,7 @@ class ItemMapperTest extends \Test\AppFramework\Db\MapperTestUtility {
|
||||
'FROM `*PREFIX*news_items` `items` ' .
|
||||
'JOIN `*PREFIX*news_feeds` `feeds` ' .
|
||||
'ON `feeds`.`id` = `items`.`feed_id` ' .
|
||||
'WHERE NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'AND NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' .
|
||||
'HAVING COUNT(*) > ?';
|
||||
$params1 = [$status, $threshold];
|
||||
|
@ -69,7 +69,7 @@ class ItemMapperTest extends \Test\AppFramework\Db\MapperTestUtility {
|
||||
'FROM `*PREFIX*news_items` `items` ' .
|
||||
'JOIN `*PREFIX*news_feeds` `feeds` ' .
|
||||
'ON `feeds`.`id` = `items`.`feed_id` ' .
|
||||
'WHERE NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'AND NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' .
|
||||
'HAVING COUNT(*) > ?';
|
||||
|
||||
@ -93,7 +93,7 @@ class ItemMapperTest extends \Test\AppFramework\Db\MapperTestUtility {
|
||||
'FROM `*PREFIX*news_items` `items` ' .
|
||||
'JOIN `*PREFIX*news_feeds` `feeds` ' .
|
||||
'ON `feeds`.`id` = `items`.`feed_id` ' .
|
||||
'WHERE NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'AND NOT ((`items`.`status` & ?) > 0) ' .
|
||||
'GROUP BY `items`.`feed_id`, `feeds`.`articles_per_update` ' .
|
||||
'HAVING COUNT(*) > ?';
|
||||
$params1 = [$status, $threshold];
|
||||
|
Loading…
Reference in New Issue
Block a user