Open
Description
What steps will reproduce the problem?
ActiveQuery::one() doesn't seem to limit records in SQL.
What is the expected result?
Queries created with ActiveQuery::one() should have a LIMIT 1
clause in the prepared SQL.
What do you get instead?
The function selects all rows from a table resulting in excess memory consumption.
Additional info
Q | A |
---|---|
Yii version | 2.0.? |
PHP version | |
Operating system |
Metadata
Metadata
Assignees
Labels
No labels