A
A
Alexander2017-05-09 14:17:32
MySQL
Alexander, 2017-05-09 14:17:32

Why is it taking so long to query the database?

I am using Active Record in yii2. Most requests go very quickly, but here, it would seem, an elementary request to update the date of the last activity goes from 0.2 to 2 seconds. With what it can be connected?
72a2d26250594dd9bfb1bb3aa4067d3c.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
entermix, 2017-05-09
@entermix

LIMIT 1set? Is the ID unique?

M
Max, 2017-05-09
@MaxDukov

And all updates-inserts are slow? or just this one?

M
mitaichik, 2017-05-09
@mitaichik

It's strange, of course ... How many lines do you have in users? No one else loads the base? The engine is not MyIasm by any chance? id - Primary Key for User? What does EXPLAIN show? Maybe the disk is broken?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question