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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b332f5-2be78.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b332f5-2be78.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?