I am using mongoengine as an Object-Document mapper. Here is a brief description of the collections that are causing the problem. Each document in collection A can have a list of links to documents in collection B.
class A(Document): list_b = ListField(EmbeddedDocumentField(EB))
When I try to access list objects of a specific document using
document_of_A.list_b
the execution time of the specified line depends on the number of links present in the list. E.g. it takes 100 ms for 100 links in the list.
Is there a better way to get links ?, so that the execution time of the above line will be reduced.
source share