Project

General

Profile

Actions

Bug #103107

closed

DatabaseRecordList + Searchstring -> ItemsPerPage

Added by Harald Holzmann 9 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-02-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hi,

when searching inside extbase list with a searchString the itemsPerPage ist set to totalitems

See TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList:597


        // Set limit from search
        if ($this->searchString) {
            $itemsPerPage = $totalItems;
        }

I have a Extbase-Table with 40.000 Entries and When Searching after a String called "example", a list of 13.000 rows are returned. So the page size would be 13.000 and runs into timeout/outofmemory.

Should be configurable via TCA and also respect max settings (A Table with more than 500 rows makes no sense I guess). There is no event or other way to change the itemsperPage.

Thanks and best regards,
Harald

Actions #1

Updated by Gerrit Code Review 9 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82998

Actions #2

Updated by Gerrit Code Review 9 months ago

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83002

Actions #3

Updated by Gerrit Code Review 9 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82974

Actions #4

Updated by Oliver Bartsch 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF