I need to do a search of more than 6000 elements, and generate a PDF with their information, everything works fine when there are few elements, but with large quantities I have