-
Notifications
You must be signed in to change notification settings - Fork 920
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
Slow performance with big tables #87
Comments
#36 |
Woow. That's definitely not normal - that's the point of the ajax table, to make the list view handle loads like this.
Cheers! |
Thank you for your quick replies :)
Since I'm new to Laravel (coming from Symfony) - I don't really know if there is something like a Symfony Profiler in Laravel, where I could see a whole timeline of all functions called and how much time it took? The debug bar which I mentioned above doesn't show this. If you could suggest a tool like that, I could give you more information :) |
I too am having this issue. I have $this->crud->enableAjaxTable(); in my controller, but it seems to be loading the entire dataset upfront instead of the first 25. Am I doing something wrong? This breaks the page as I am working with a large dataset. Any help would be much appreciated. |
@flaveris , @JeanHules - you're totally right, I missed a SELECT when coding the AJAX functionality. The Thanks for reporting this, it's now fixed in Cheers! |
Thank you so much! Works like a charm :) |
Thank you for reviewing this issue. One last issue, I am getting this error:
and Any ideas on how to fix that? |
Hm... Never got that, but judging by the article, I assume your EntityCrudController::search() function returns something other than a 2xx response. What's the response code in your browser's Developer Tools > Network for an AJAX call to 'search'? Also, what's the actual response? 'Cause it might be an error for some reason. |
This is weird... I am getting a 500 error when I look at Network and Console, but when I go directly to the URL as you would a normal website, I get a 403. Any idea on what could be causing this? |
It's normal to get a 403 error when accessing it manually - the route only supports POST and you're trying a GET. But it's odd that you're getting a 500 error in Network and Console. I guess there's no other way to figure out what's wrong, other than moving a |
I figured it out. I am not sure if it is because I am using MSSQL or not, but I had to use echo json_encode($dataTable->make()); and I was also getting a Sql error 207 which was caused by an added "id" column which my table does not have. All seems well now. Thanks for the help. Great product. |
I have a table with 440 000 rows and 19 columns, and I am getting "memory limit exhausted" errors when I try to enter list view. I tried raising memory limit step by step, and it only managed to load the page with 2GB memory limit - and it took about 20 seconds. I am also using ajax table option to speed things up.
Is this normal?
I was so excited to find this CRUD library for Laravel, but I'm afraid I won't be able to use it anymore when my tables grow to millions of rows... :/
The text was updated successfully, but these errors were encountered: