Re: request for new API function

2011-02-05 Thread Stefan Sperling
On Sat, Feb 05, 2011 at 05:15:22PM +0100, Stefan Küng wrote: > On 05.02.2011 16:46, Stefan Sperling wrote: > >What if the amount of information requested simply doesn't fit > >into memory? I'd prefer a system that cannot fail in this way. > >I'd prefer passing the information to the client piece by

Re: request for new API function

2011-02-05 Thread Stefan Küng
On 05.02.2011 16:46, Stefan Sperling wrote: On Sat, Feb 05, 2011 at 04:22:29PM +0100, Stefan Küng wrote: On 05.02.2011 13:56, Stefan Sperling wrote: I think we should go into this direction. In fact, I think we should simply change the existing APIs to use the fastest possible way of getting a

Re: request for new API function

2011-02-05 Thread Stefan Sperling
On Sat, Feb 05, 2011 at 04:22:29PM +0100, Stefan Küng wrote: > On 05.02.2011 13:56, Stefan Sperling wrote: > > >I think we should go into this direction. > >In fact, I think we should simply change the existing APIs to use > >the fastest possible way of getting at information. > > Well, currently

Re: request for new API function

2011-02-05 Thread Stefan Küng
On 05.02.2011 13:56, Stefan Sperling wrote: I think we should go into this direction. In fact, I think we should simply change the existing APIs to use the fastest possible way of getting at information. Well, currently there is no API that does what I suggested (basically return all results

Re: request for new API function

2011-02-05 Thread Stefan Sperling
On Sat, Feb 05, 2011 at 01:56:41PM +0100, Stefan Sperling wrote: > There were two approaches discussed in that thread. I am currently > experimenting with the "queries per-directory" approach (see r1051452 > and r1066541). Sorry, I meant r1050650, not r1051452.

Re: request for new API function

2011-02-05 Thread Stefan Sperling
On Sat, Feb 05, 2011 at 10:28:20AM +0100, Stefan Küng wrote: > Hi, > > To find all files and folders that have a specific property set I > need to crawl the whole working copy and fetch the properties of > each and every item, then scan the returned property list for that > property. > But WC-NG u

request for new API function

2011-02-05 Thread Stefan Küng
Hi, To find all files and folders that have a specific property set I need to crawl the whole working copy and fetch the properties of each and every item, then scan the returned property list for that property. But WC-NG uses an SQLite db so this task should be much faster with a lot less dis