You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/10/03 19:24:07 UTC

[GitHub] [couchdb] davisp commented on issue #2227: Skip reading the revision meta when requesting a specific revision

davisp commented on issue #2227: Skip reading the revision meta when requesting a specific revision
URL: https://github.com/apache/couchdb/issues/2227#issuecomment-538088870
 
 
   The first bit of subtlety is that there's a significant difference between "revision that's not a leaf" vs "I don't know of this revision" which means any time you get a not_found when doing a direct lookup you'll fall back to having to search every revisions rev_path.
   
   That said, I'd still think it'd probably be worth adding the optimization as the replicator should theoretically be requesting the latest revisions most of the time.
   
   Also while staring at this thinking of optimizations:
   
   * revs=all could be a single scan of the revision space
   * we should investigate building the tree once and then searching for each revision vs just searching each rev_path for the given revision. Though that also means we have to be a bit careful to match `couch_key_tree:get_*` functions.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services