odmantic icon indicating copy to clipboard operation
odmantic copied to clipboard

add hint in find function

Open chy373 opened this issue 3 years ago • 1 comments

add hint in find function, so we can get result faster

another question: Why odmantic's model find function use motor's aggregate instead of find?

chy373 avatar Jul 01 '21 10:07 chy373

Since there is not really the index support yet (#93), it's probably not the best time to add this feature. If you want to draft a PR, ofc it wouldn't be a problem :grinning:

Why odmantic's model find function use motor's aggregate instead of find?

The main benefit of using an agregation pipeline is to be able to get all the documents (even the referenced ones) in one single query.

art049 avatar Jul 05 '21 13:07 art049