(self, doc_ids, purge_existing=True)
A non overriding method - bulk load a bunch of documents so they can be
        efficiently retrieved later.
A non overriding method - bulk load a bunch of documents so they can be
        efficiently retrieved later.
A non overriding method - bulk load a bunch of documents so they can be efficiently retrieved later .
def bulk_load(self, doc_ids, purge_existing=True):
        """
        A non overriding method - bulk load a bunch of documents so they can be
        efficiently retrieved later.
        """
        if purge_existing:
            del self._docs
            self._docs = {}

        docs = self.all_docs(keys=doc_ids, include_docs=True)
        self._docs.update({x['id']: x['doc'] for x in docs if 'id' in x and x['doc']})
def bulk_load ( self , doc_ids , purge_existing = True ) : if purge_existing : del self . _docs self . _docs = { } docs = self . all_docs ( keys = doc_ids , include_docs = True ) self . _docs . update ( { x [ 'id' ] : x [ 'doc' ] for x in docs if 'id' in x and x [ 'doc' ] } )