georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
261 stars 354 forks source link

Performance issue in paginator with over 230.000 news records #2490

Open froemken opened 1 month ago

froemken commented 1 month ago

Bug Report

Current Behavior Currently, the list view slows down ~600 milliseconds, because of a COUNT query which can not use index. The COUNT query was executed by paginator section in listAction, although paginator is disabled in news plugin.

Expected behavior/output If I deactivate pagination in news plugin I expect that no paginator related queries will be executed.

Environment

Possible Solution Wrap the paginator section in listAction into a condition asking against settings.hidePagination

Additional context The problem increases as more records you have in news table.

georgringer commented 1 month ago

wanna do a PR? ;)