I updated magento to the latest version 2.4.5, it will load all products on category page, but I have more than 60000 skus, it load very slow. how to limit pre-loading 10k skus likes old version? I tried to change search_request.xml file, but it's not working for me.
I always got error: FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /aaa/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 292" while reading response header from upstream, client: 127.0.0.1, server: pazdb.com, request: "GET /en_laptop/replacement-laptop-screens.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "www.aaa.com", referrer: "https://www.aaa.com/"
whatever I changed memory_limit=-1.