Re: Listing the znodes efficiently

2012-05-18 Thread Flavio Junqueira
One pointer for this discussion is the HierarchicalLedgerManager in BookKeeper, org.apache.bookkeeper.meta. -Flavio On May 18, 2012, at 2:26 AM, Patrick Hunt wrote: > On Thu, May 17, 2012 at 5:04 PM, Narayanan Arunachalam > wrote: >> Another approach to improve the performance: >> For example

Re: Listing the znodes efficiently

2012-05-17 Thread Patrick Hunt
On Thu, May 17, 2012 at 5:04 PM, Narayanan Arunachalam wrote: > Another approach to improve the performance: > For example creating znode to represent something "/abc001" > Compute hash and index of the slot for the resource name using HashMap like > hash() and indexFor() methods. So if the slot

Re: Listing the znodes efficiently

2012-05-17 Thread Narayanan Arunachalam
Another approach to improve the performance: For example creating znode to represent something "/abc001" Compute hash and index of the slot for the resource name using HashMap like hash() and indexFor() methods. So if the slot size is 10 this could result in a number between 0 and 9. Assume we ge

Re: Listing the znodes efficiently

2012-05-17 Thread Patrick Hunt
On Thu, May 17, 2012 at 1:55 PM, Narayanan A R wrote: > Hi, > > Does ZK has or have plans to add the following features: > > - Query znodes under a path by passing filter on the attributes. Sounds intriguing, depending on the details. Might be a good addition to the multi* feature. (not discussed

Listing the znodes efficiently

2012-05-17 Thread Narayanan A R
Hi, Does ZK has or have plans to add the following features: - Query znodes under a path by passing filter on the attributes. - Ability to paginate the znodes under a given path. Without this, the app has to pull all the nodes and perform the comparison at the client end. Regards, ARN