Hello List:
I am new to Couchbase.
I have a 2 node Couchbase environment, and I have 20 documents (Articles in 
my application) stored in a bucket. I believe that there are 5 articles 
living physically in node 1 and the others are living in node 2 because 
when I shut down node 1, there are only 15 articles in my application's 
list.

I have an 'ordered by postdate' list in my application which I get results 
from a view like this:...emit(doc.postdate)...

Now, for some reason, the list in my application is always incorrect that 
some of the articles are not in the right position (not ordered by the post 
date).My only guess is that: node 1 has an index for the 5 articles and 
node 2 has an index for the other 15, they both order by the postdate field 
correctly in there own index, but after my application (using a .NET client 
library) get 5 from node 1 and 15 from node 2, it just 'concat' the two 
list into a full list 20,that's why I saw the wrong order in my 
application's article list

And from this manual here 
(http://docs.couchbase.com/couchbase-manual-2.2/#view-basics) I read the 
following:

When you query a view and thereby trigger the indexing process, you* send 
that request to a single node in the cluster*. *This node then distributes 
the request to all other nodes in the cluster*. Depending on the parameter 
you send in your query, each node will either send the most current partial 
index at that node, will update the partial index and send it, or send the 
partial index and update it on disk. *Couchbase Server will collect and 
collate these partial indexes and sent this aggregate result to a client*.

so this paragraph tells me that when I quey a view, I send the request to a 
SINGLE node, then this single node collect the collate the partial indices 
 and return to me a full list.Now my only question is: the items in each 
partial index is sure ordered by default( e.g. ordered by post date field), 
but what happened when the requested node 'collect and collate' these 
partial indices?, does it 're-order' this new full list by the sorting 
field or it just 'concat' the partial lists in to a full one without caring 
the final ordering?

>From what I've learned from my application, I think it's the second 
situation that is the final returned list is NOT properly ordered. So can 
you tell me I am wrong about this and explain to me?

Thanks a lot in advance and best regards!


Eric Luo

.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to