Slow loading when data more than 1000 #2859
Replies: 11 comments 1 reply
-
Cause could be a complex query, or a sorting that issues the load of all the records in background. |
Beta Was this translation helpful? Give feedback.
-
my controller :
Blade
and i have more than 6000 row to show in the table. |
Beta Was this translation helpful? Give feedback.
-
Is the 'date' column indexed in the database?
or
|
Beta Was this translation helpful? Give feedback.
-
yes i modified it to indexed but i'm facing the same problem yet. |
Beta Was this translation helpful? Give feedback.
-
Is it a view of a single table or of mutiple joined tables. |
Beta Was this translation helpful? Give feedback.
-
just for a single table |
Beta Was this translation helpful? Give feedback.
-
Do you have Debugbar active in Laravel and can you see see the duration of the query? |
Beta Was this translation helpful? Give feedback.
-
I think you are not using the package, only DataTables client-side implementation. See this documentation for reference. Note that it's an old approach but the concept should be the same. |
Beta Was this translation helpful? Give feedback.
-
i found a solution with paginate function
in welcome.blade.php i added it works with a load time 700 ms, but the search function of datatable works only on the current page not for the whole table what should i do please the deadline is today. NB : i'm beginner with laravel and i didn't know how to manupilate a table with ajax, thanks @yajra for your advise but i didn't succeed to work with your solution. |
Beta Was this translation helpful? Give feedback.
-
thanks a lot it works great |
Beta Was this translation helpful? Give feedback.
-
It's better to use pagination like you did, great!! or with ajax wich you use if you want to use pagination without redirecting to another view ! |
Beta Was this translation helpful? Give feedback.
-
The issue is that my laravel application speed's is too slow when the result has over 7k rows
It keep loading for at 23 seconds or more to show the data in a table (i'm using bootstrap model of datatable)
System details
Beta Was this translation helpful? Give feedback.
All reactions