We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey so my recent discovery. Idk if this should be implemented in code somehow...
'x' attribute has index.
Model::find()->sum('x') - 700ms Model::find()->where(['x' => ['$exists' => true]])->sum('x') - 300ms
sum() is doing aggregate()
"In order for an aggregation pipeline to "use" an index the $match stage must be implemented first."
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey so my recent discovery. Idk if this should be implemented in code somehow...
'x' attribute has index.
Model::find()->sum('x') - 700ms
Model::find()->where(['x' => ['$exists' => true]])->sum('x') - 300ms
sum() is doing aggregate()
"In order for an aggregation pipeline to "use" an index the $match stage must be implemented first."
The text was updated successfully, but these errors were encountered: