R
R
Roman2018-05-16 23:19:57
Django
Roman, 2018-05-16 23:19:57

Is it possible to link fields together in mongoengine models?

Is it possible to bind the fields of mongoengine models so that when a field in one document changes, the value of the associated field in another document or even in several documents changes automatically ??? In terms of functionality, I could find a similar one - ReferenceField , only it refers to the whole document, and not to a specific field, and as I understand it, it works very slowly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-05-18
@vintello

well, as an option in other documents, refer to the ID of the main document and not write all the data in full there. when getting data in other documents, just make an additional request from the main reference document.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question