Site with 20k records show me a blank pages

Good Day, I currently have a project using Kirby 3.6.2, with 20k records/pages, When I try to use the Panel search, it gives me a blank, white page - and the url is somethinglike this: https://mytestsite.dev/panel/search/pages?query=sometext.

If I decrease the amount of records/pages to 7k, it seems searching works fine. I can search with ease.

is this a bug? or is something in my code causing it?

I published my test project here (https://github.com/kirbyzone/test-project.git), if anyone would like to replicate my issue - that repo has branches for 7k records, 10k records, 15k records and 20k records.

welcome to the forum.

for what duration (in seconds) does the search over 20k pages run inside the panel?

Thank you @bnomei . I get that white page after 7 seconds

Probably the request is running out of memory? If yes the easiest “fix” would be to give them more.
Maybe do a phpinfo() somewhere and check the memory_limit. Then increase it in the .htaccess file (or php.ini - depending on your setup)

A proper solution however would probably be to implement your own search. See here: Panel search | Kirby CMS
Maybe with something less memory and cpu intensive than Kirby’s default approach of “load the entire site and search in memory”.

There’s also this: https://github.com/distantnative/search-for-kirby
But I don’t know what the warning on top of the readme really implicates.

Agree with the above, sounds like a memory issue. A good place to start at least.

thank you @rasteiner @SCC, you’re right, I just update and increase the memory limit and it is working now, the search lasted more than 7 seconds so I will try the plugins you mentioned. thank you so much for your help