0

While investigate an Exception caused while doing a FindAsync operation Exception caused while doing a FindAsync operation

It looks like during the FindAsync the found Objects are deserialized. Which does mean, that the whole documents are loaded into memory.

But if I only want to access one entry of a nested list of subdocuments this doesn't make sense if the embedded list is large. Is there away to prevent loading of the whole document?

Does it make a difference how the loading is done if I use BSONDocument or a strongly typed collection?

The same goes for adding new embedded entries to the document (e.g. time stamps). Will for adding/updating always the whole document be loaded?

Community
  • 1
  • 1
Thomas
  • 8,397
  • 7
  • 29
  • 39

0 Answers0