jcoglan commented on issue #3773:
URL: https://github.com/apache/couchdb/issues/3773#issuecomment-937846761


   It's also interesting that querying the view without `keys` lists two rows 
with `q=2`:
   
   ```
   See what is in the view
   00000000  7b 22 72 6f 77 73 22 3a  5b 0d 0a 7b 22 6b 65 79  
|{"rows":[..{"key|
   00000010  22 3a 5b 22 66 69 6c 65  22 2c 22 63 68 61 c3 ae  
|":["file","cha..|
   00000020  6e 65 22 5d 2c 22 76 61  6c 75 65 22 3a 31 7d 2c  
|ne"],"value":1},|
   00000030  0d 0a 7b 22 6b 65 79 22  3a 5b 22 66 69 6c 65 22  
|..{"key":["file"|
   00000040  2c 22 63 68 61 69 cc 82  6e 65 22 5d 2c 22 76 61  
|,"chai..ne"],"va|
   00000050  6c 75 65 22 3a 31 7d 0d  0a 5d 7d 0a              |lue":1}..]}.|
   0000005c
   ```
   
   ... but only a single row with `q=1`. The row returned has key bytes `c3 ae` 
representing codepoint U+00EE.
   
   ```
   See what is in the view
   00000000  7b 22 72 6f 77 73 22 3a  5b 0d 0a 7b 22 6b 65 79  
|{"rows":[..{"key|
   00000010  22 3a 5b 22 66 69 6c 65  22 2c 22 63 68 61 c3 ae  
|":["file","cha..|
   00000020  6e 65 22 5d 2c 22 76 61  6c 75 65 22 3a 32 7d 0d  
|ne"],"value":2}.|
   00000030  0a 5d 7d 0a                                       |.]}.|
   00000034
   ```
   
   So it does seem as though if these two rows are stored in the same shard, 
their keys are considered equal and they get merged, but not if they're 
(potentially) stored in different shards.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to