eiri commented on issue #1142: fabric:query_view/4 fails if number of docs in 
the DB is more than 60
URL: https://github.com/apache/couchdb/issues/1142#issuecomment-378340158
 
 
   The seq btree _is_ that separate index and its keys [are tuples of update 
seq and view 
key](https://github.com/apache/couchdb/blob/master/src/couch_mrview/src/couch_mrview_updater.erl#L104).
 So if your keys are strings, then you can pull changes since given update seq, 
because `{<<"4-g1AAAA">>, <<>>} < {<<"4-g1AAAA">>, <<"abc">>}` is `true`, but 
when your keys are, say, integers, you can't, since `{<<"4-g1AAAA">>, <<>>} < 
{<<"4-g1AAAA">>, 10}` is `false`. I hope that makes it clearer.
   
   Yes, as I said, it's easy to remediate by setting custom collation on `seq` 
btree (note, that `kseq` is _different_ index and its collation set the same as 
view's), but it doesn't fix a deeper issue with the whole implementation.
   
   

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


With regards,
Apache Git Services

Reply via email to