Issue Bug Closed

#103107DatabaseRecordList + Searchstring -> ItemsPerPage

Harald Holzmann 02/13/24, 10:22 updated 07/09/24, 15:33

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

Reviews 3

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 82998 status New Under Review 02/14/24, 14:15

  2. Gerrit Code Review pushed patch set 1 for main to change 83002 02/14/24, 17:08

  3. Gerrit Code Review pushed patch set 1 for 12.4 to change 82974 02/14/24, 17:32

  4. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 02/14/24, 17:55

    Applied in changeset commit:f1afd04d925a4d804cd2cc692a279a088d91c8e2.

  5. Benni Mack changed status Resolved Closed 07/09/24, 15:33