General mailing list for discussions and development of PeerLibrary and related software.

List archive Help


Re: [PeerLibrary dev] PeerDB performance and fields selector


Chronological Thread 
  • From: Mitar < >
  • To:
  • Subject: Re: [PeerLibrary dev] PeerDB performance and fields selector
  • Date: Sat, 23 Aug 2014 14:51:17 -0700

Hi!

> I think you are misunderstanding what PeerDB is doing. PeerDB is not
> fetching related documents at all. PeerDB fetches related documents at
> *write* time and syncs them as subdocuments into the main document. Then
> when you read, you don't have to do anything anymore, you have all data
> you need available. And you can use normal MongoDB and all other queries
> on whole documents with subdocuments already in.

Maybe it will help if you run "mrt mongo" and see what is stored in the
database. You will see that those related fields are changed in the
database directly. For example, if you add new annotation to the
publication, "annotations" and "annotationsCount" fields in publication
will change.


Mitar

--
http://mitar.tnode.com/
https://twitter.com/mitar_m



Archive powered by MHonArc 2.6.18.

Top of page