Discussion:
CakePHP 3 + MSSQL = slow query
Enrico Lorenzoni
2016-03-17 17:35:21 UTC
Permalink
hello everyone, this is my situation.

MSSQL server with query on a single table; timer says 4.47s, SQL Log says
1375 rows in 110ms.
Time spent in "controller action" is 3600ms and I further tried to inspect
the controller code, printing elapsed microseconds: it seems like the
assignment of the foreach cycle is the slowest thing in my code.

Maybe I can optimize something to save some time?

even with debug off time is not much better.

please tell me how can I provide more debug information to help fix this.

thanks!

Enrico
--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
heavyKevy
2016-03-25 07:01:49 UTC
Permalink
Is there any reason you are not paging it and fetching only 20, or 50 or
100 records at a time? That would significantly speed things up for you...
Regards,
--Kevin
--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...