Hi Matt: Thanks for you quick reply. No I didn't use any reduce() function. So you mean that a requested node SHOULD and WILL merge & resort the merged list then send it to the requesting client? So if "there is NOT an issue somewhere" then I will get the correctly ordered result I want? I mean I don't need to reorder the list in my application if things go all right?
Thanks and regards! Eric Stay with me,stay with my heart,honey..... On Thu, Feb 20, 2014 at 3:35 PM, Matt Ingenthron <[email protected]> wrote: > Hi Eric, > > From: Eric Luo <[email protected]> > Reply-To: "[email protected]" <[email protected]> > Date: Wednesday, February 19, 2014 10:03 PM > To: "[email protected]" <[email protected]> > Subject: Partial index sorting problem > > 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? > > > Indeed, if you're getting a different order there is an issue somewhere. > > Generally, the cluster should merge sort the resulting query from all of > the nodes so it should always be ordered. > > One question though, do you have a reduce() function? The reason I ask is > that the component that does the merge sort may have to re-reduce your > results based on any reductions being done. > > It might be great if you could file an issue at couchbase.com/issues with > any sample data and views. > > Thanks, > > Matt > > -- > Matt Ingenthron > Couchbase, Inc. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Couchbase" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/couchbase/5zFNQKLjclc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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.
