Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

Can you eager load the relationships, and paginate them? That might speed things up.

Last updated 2 years ago.
0

This could be an index problem, did you create an index of the most important columns ('cstatus', 'cdates', 'ccategory', 'ccreator',"cpermissions", "cpermissions.ccategory", "cpermissions.cdates", "cpermissions.czones") in the where clause?

Last updated 2 years ago.
0

I agree with oden, start by checking/creating indexes and see if that helps.

Something else you can do, turn on query logging and grab the raw query and run it through explain just to make sure you are right about the DB transaction time.

Last updated 2 years ago.
0

I am loading close to 5k records at once with json and it takes close to 2.5 seconds to load....

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jannickv jannickv Joined 20 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.