mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-01-06 22:42:53 +01:00
Improve sql query performance by removing unused payload
Signed-off-by: Daniel Starzmann <daniel@starze.de>
This commit is contained in:
parent
51d026a46a
commit
2d4cb5ed1c
@ -8,6 +8,7 @@ The format is mostly based on [Keep a Changelog](https://keepachangelog.com/en/1
|
||||
### Changed
|
||||
|
||||
### Fixed
|
||||
- Improve performance of item updates (#1322)
|
||||
|
||||
# Releases
|
||||
## [21.2.0-beta2] - 2023-04-05
|
||||
|
@ -314,7 +314,7 @@ class ItemMapperV2 extends NewsMapperV2
|
||||
{
|
||||
$builder = $this->db->getQueryBuilder();
|
||||
|
||||
$builder->select('items.*')
|
||||
$builder->select('items.id')
|
||||
->from($this->tableName, 'items')
|
||||
->innerJoin('items', FeedMapperV2::TABLE_NAME, 'feeds', 'items.feed_id = feeds.id')
|
||||
->where('feeds.user_id = :userId')
|
||||
|
@ -419,7 +419,7 @@ class ItemMapperTest extends MapperTestUtility
|
||||
|
||||
$this->builder->expects($this->once())
|
||||
->method('select')
|
||||
->with('items.*')
|
||||
->with('items.id')
|
||||
->will($this->returnSelf());
|
||||
|
||||
$this->builder->expects($this->once())
|
||||
|
Loading…
Reference in New Issue
Block a user