odmantic icon indicating copy to clipboard operation
odmantic copied to clipboard

LazyReference or Reference(lazy=True)

Open jesusch opened this issue 4 years ago • 1 comments

Feature request

Context

Adding a Reference to a Model currently always looks up that reference This is very time consuming and not always wanted

Solution

Having the possibility to define a Ref as Lazy would be awesome see:

  • http://docs.mongoengine.org/apireference.html#mongoengine.fields.LazyReferenceField
  • https://aiomotorengine.readthedocs.io/en/latest/modeling.html#embedding-vs-referencing

jesusch avatar May 04 '21 14:05 jesusch

any update on this?

huytuong010101 avatar Jun 04 '24 14:06 huytuong010101