Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning huge amount of data causes memory size issue #109

Open
jialeee17 opened this issue May 20, 2024 · 1 comment
Open

Returning huge amount of data causes memory size issue #109

jialeee17 opened this issue May 20, 2024 · 1 comment
Labels

Comments

@jialeee17
Copy link

jialeee17 commented May 20, 2024

Hello, I got the error when trying to return more than 10k+ of records. Error: "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted". Is there any solution for this instead of changing the "memory_limit" in php.ini?

@yajra
Copy link
Owner

yajra commented May 20, 2024

Don't load all records at once. Use pagination via query and not collection.

@yajra yajra added the question label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants