Yii1.1 is slow to execute IN queries through the framework, but in fact this query is not slow

1) this is the execution result of the Yii1 framework record:

clipboard.png

2SQL:

clipboard.png

3) this is the statement executed:

select indexerid
from pre_dimension
where status=1 and origin="restaurant" and columnid in (100008, 100498, 100494, 100492, 100503, 100506, 100512, 100520, 100530)
group by indexerid
order by istop desc, scorer desc
limit 30
offset 270

question:

Why is the execution time of the SQL client different from that of the Yii framework (at least about the same)?

Mar.20,2021

SQL client executes native sql

frames are sql spliced by ORM

in terms of reason, it should be pretty much

Menu