We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How do we use indexing with Phalcon ODM (Mongodb)

Hi,

As question asked, how do we use indexing with ODM. What are the best practices.

Any tutorials to share?

Thanks!

If a field has an index available a covered query will use it. https://docs.mongodb.org/manual/core/indexes/