N
N
Nks2012-04-09 21:48:21
Yii
Nks, 2012-04-09 21:48:21

Slow modules in Yii?

Used framework: Yii (oddly enough)).
Faced a problem: slow modules. Moreover, from profiling it is not clear which of them is slow. There are queries to the database, but they are not as slow as the total page load (2 seconds). I would like to reduce to 1 sec. or at least closer to that number.
So here's the picture.
From the log, we see that after enabling the session component, it immediately goes +2 seconds. Disabling the isGuest() check in right.php (everything is visible there) does not increase anything. Then immediately the next request, after the previous one, starts loading after 2 seconds. Profiling queries to the database gave the following result: the picture is here .
Tried on 2 variants of iron: the result is the same.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
egorinsk, 2012-04-09
@egorinsk

Profile with a normal tool like XDebug, log a normal (non-slow) page and a slow page for comparison, and compare. Modules can put their hooks on different events. It is difficult to say anything from the given data. Requests to the DB, apparently, have nothing to do with it.

A
Alexander Makarov, 2012-04-10
@SamDark

How is your session stored? Something took an indecently long time to initialize.

L
Lebnik, 2012-06-06
@Lebnik

and who has the speed of Yii without a database and APC? so let's say cleanly output Hello Word

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question