SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
We have started using queries of the form SELECT ... WHERE ... AND local_relpath LIKE ... and I was curious about the performance of LIKE. So I tried a large database: $ sqlite3 wcx.db "select count(*) from nodes" 377021 and a LIKE query: $ time sqlite3 wcx.db "select count(*) from nodes w

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Florian Weimer
* Philip Martin: > We have started using queries of the form > >SELECT ... WHERE ... AND local_relpath LIKE ... > > and I was curious about the performance of LIKE. LIKE is ASCII-case-insensitive in SQLite, and the indexes are case-sensitive by default, so SQLite can't do the usual range opti

Issue 3727 - svn export into the current directory

2010-10-29 Thread Noorul Islam K M
It looks like the issue http://subversion.tigris.org/issues/show_bug.cgi?id=3727 is because of the commit done in r880559. Since this is a conscious change, should this issue be ignored? Thanks and Regards Noorul

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
Florian Weimer writes: > * Philip Martin: > >> We have started using queries of the form >> >>SELECT ... WHERE ... AND local_relpath LIKE ... >> >> and I was curious about the performance of LIKE. > > LIKE is ASCII-case-insensitive in SQLite, and the indexes are > case-sensitive by default, s

Re: Issue 3727 - svn export into the current directory

2010-10-29 Thread Philip Martin
Noorul Islam K M writes: > It looks like the issue > http://subversion.tigris.org/issues/show_bug.cgi?id=3727 is because of > the commit done in r880559. > > Since this is a conscious change, should this issue be ignored? >From the log message: r880559 | hwright | 2009-11-12 18:21:32 + (T

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
Philip Martin writes: > I need something like > > local_relpath = 'zig1/zag27 > OR (local_relpath > 'zig1/zag27/' AND local_relpath < 'zig1/zag270') > > and that is as slow as LIKE. Adding that "local_relpath =" is the > problem, without it I get the children in 0.006s. With it I get

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Florian Weimer
* Philip Martin: >> and that is as slow as LIKE. Adding that "local_relpath =" is the >> problem, without it I get the children in 0.006s. With it I get the >> path and the children but it takes 0.35s. > > SQL is tricky: I can run a query using either > > local_relpath = 'zig1/zag27 > > or

Re: svn commit: r1024394 - /subversion/site/publish/packages.html

2010-10-29 Thread Ivan Zhakov
On Thu, Oct 28, 2010 at 16:42, Daniel Shahaf wrote: > C. Michael Pilato wrote on Wed, Oct 27, 2010 at 10:11:20 -0400: >> On 10/27/2010 09:41 AM, Ivan Zhakov wrote: >> > 2. Let's think about users: they have different needs for Subversion: >> > just a client, client and server etc. There are differ

Re: svn commit: r1028381 - /subversion/site/publish/roadmap.html

2010-10-29 Thread Julian Foad
On Thu, 2010-10-28 at 14:28 -0400, C. Michael Pilato wrote: > On 10/28/2010 01:58 PM, Greg Stein wrote: > > On Thu, Oct 28, 2010 at 13:04, C. Michael Pilato > > wrote: > >> On 10/28/2010 12:50 PM, Hyrum K. Wright wrote: > >>> On Thu, Oct 28, 2010 at 11:48 AM, wrote: > Author: cmpilato > >>

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
Florian Weimer writes: > It seems an optimizer issue. Which version of SQLite do you use? I was using 3.6.21-2~bpo50 on Debian/stable. I've just built a local 3.7.3-1 and get the same result. The database has 377021 rows. The exact commands are: sqlite3 wcx.db "select count(*) from nodes

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
Philip Martin writes: > sqlite3 wcx.db "select count(*) from nodes where wc_id = 1 and > local_relpath = 'zag1/zag27'" Typo, that should be 'zig1/zag27'. -- Philip

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
Philip Martin writes: > I suppose I will have to try using EXPLAIN. For the fast query "select ... where wc_id = ... and local_relpath > ... and local_relpath < ..." explain starts: 0|Ttace|0|0|0||00| 1|Integer|1|1|0||00| 2|String8|0|2|0|zig1/zag27/|00| 3|String8|0|3|0|zig1/za

[trademarks] References to svncorp trademark policy

2010-10-29 Thread Daniel Shahaf
http://subversion.apache.org/docs/community-guide/releasing.html#custom-releases refers and links to svncorp's trademarks policy. Should it link to ASF's trademarks policy?

Re: [RFC] Eliminate scan_base_repos() - require repos-id and repos-relpath in all BASE nodes

2010-10-29 Thread Julian Foad
On Thu, 2010-10-28 at 13:55 -0400, Greg Stein wrote: > On Thu, Oct 28, 2010 at 12:36, Hyrum K. Wright > wrote: > > On Thu, Oct 28, 2010 at 11:29 AM, Mark Phippard wrote: > >> On Thu, Oct 28, 2010 at 12:23 PM, Hyrum K. Wright > >> wrote: > >>> On Thu, Oct 28, 2010 at 10:09 AM, Julian Foad > >>>

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Daniel Shahaf
Philip Martin wrote on Fri, Oct 29, 2010 at 08:58:02 +0100: > Can we treat the string as a bytes and just increment and carry? No, this might invalidate the UTF-8 sequence. If a character spans multiple bytes, then those bytes have header bits of the form /^1+0/ (in regex), so incrementing the by

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Philip Martin
Daniel Shahaf writes: > Philip Martin wrote on Fri, Oct 29, 2010 at 08:58:02 +0100: >> Can we treat the string as a bytes and just increment and carry? > > No, this might invalidate the UTF-8 sequence. If a character spans > multiple bytes, then those bytes have header bits of the form /^1+0/ >

Re: SQLite and SELECT WHERE local_relpath LIKE

2010-10-29 Thread Florian Weimer
* Philip Martin: >> I suppose I will have to try using EXPLAIN. As expected, the slow query doesn't use the index. I think you should bring this up on SQLite user mailing list. -- Florian Weimer BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstraße 100 tel:

Re: Issue 3727 - svn export into the current directory

2010-10-29 Thread Hyrum K. Wright
On Fri, Oct 29, 2010 at 3:57 AM, Noorul Islam K M wrote: > > It looks like the issue > http://subversion.tigris.org/issues/show_bug.cgi?id=3727 is because of > the commit done in r880559. > > Since this is a conscious change, should this issue be ignored? Not necessarily. I recall at least one p

Re: [trademarks] References to svncorp trademark policy

2010-10-29 Thread C. Michael Pilato
On 10/29/2010 06:46 AM, Daniel Shahaf wrote: > http://subversion.apache.org/docs/community-guide/releasing.html#custom-releases > refers and links to svncorp's trademarks policy. > > Should it link to ASF's trademarks policy? Yup. -- C. Michael Pilato CollabNet <> www.collab.net <> Dis

Re: svn commit: r1024394 - /subversion/site/publish/packages.html

2010-10-29 Thread C. Michael Pilato
On 10/29/2010 05:29 AM, Ivan Zhakov wrote: > I've added note to the packages that requires registration in r1028656. Thanks, Ivan. -- C. Michael Pilato CollabNet <> www.collab.net <> Distributed Development On Demand signature.asc Description: OpenPGP digital signature

RFC: revised text for "svn help merge"

2010-10-29 Thread Stefan Sperling
Our current help texts explain syntax of commands quite well, but they don't really explain the semantics. This makes svn help fairly useless for people who just want to get going with their first steps in Subversion. The Subversion book on the other hand explains the semantics very well, but it l

Re: RFC: revised text for "svn help merge"

2010-10-29 Thread C. Michael Pilato
On 10/29/2010 11:57 AM, Stefan Sperling wrote: > Thoughts? Comments? I've not reviewed your suggested help text. But merely seeing the size of makes me wonder ... is it time for 'svn help SUBCOMMAND --verbose' ? I, for one, would love to offer two levels of built-in help. And if the second leve

Re: RFC: revised text for "svn help merge"

2010-10-29 Thread Stefan Sperling
On Fri, Oct 29, 2010 at 12:01:41PM -0400, C. Michael Pilato wrote: > On 10/29/2010 11:57 AM, Stefan Sperling wrote: > > Thoughts? Comments? > > I've not reviewed your suggested help text. But merely seeing the size of > makes me wonder ... is it time for 'svn help SUBCOMMAND --verbose' ? Sure, n

Re: RFC: revised text for "svn help merge"

2010-10-29 Thread Stephen Butler
On Oct 29, 2010, at 18:13 , Stefan Sperling wrote: > On Fri, Oct 29, 2010 at 12:01:41PM -0400, C. Michael Pilato wrote: >> On 10/29/2010 11:57 AM, Stefan Sperling wrote: >>> Thoughts? Comments? >> >> I've not reviewed your suggested help text. But merely seeing the size of >> makes me wonder ..

Re: [RFC] Eliminate scan_base_repos() - require repos-id and repos-relpath in all BASE nodes

2010-10-29 Thread Julian Foad
On Fri, 2010-10-29 at 12:06 +0100, Julian Foad wrote: > On Thu, 2010-10-28 at 13:55 -0400, Greg Stein wrote: > > On Thu, Oct 28, 2010 at 12:36, Hyrum K. Wright > > wrote: > > > On Thu, Oct 28, 2010 at 11:29 AM, Mark Phippard > > > wrote: > > >> On Thu, Oct 28, 2010 at 12:23 PM, Hyrum K. Wright >

Re: RFC: revised text for "svn help merge"

2010-10-29 Thread Daniel Shahaf
C. Michael Pilato wrote on Fri, Oct 29, 2010 at 12:01:41 -0400: > On 10/29/2010 11:57 AM, Stefan Sperling wrote: > > Thoughts? Comments? > > I've not reviewed your suggested help text. But merely seeing the size of > makes me wonder ... is it time for 'svn help SUBCOMMAND --verbose' ? Don't you

Re: [trademarks] References to svncorp trademark policy

2010-10-29 Thread Daniel Shahaf
C. Michael Pilato wrote on Fri, Oct 29, 2010 at 11:16:36 -0400: > On 10/29/2010 06:46 AM, Daniel Shahaf wrote: > > http://subversion.apache.org/docs/community-guide/releasing.html#custom-releases > > refers and links to svncorp's trademarks policy. > > > > Should it link to ASF's trademarks policy

RE: revised text for "svn help merge"

2010-10-29 Thread Bob Archer
> So the proposed help text below centers around the most common use > cases. Wow... this looks great. It will be nice to have this at the command line. I read through it all... only found one small nit: > If several commits to trunk were related to the fix, multiple > revisions > to

Re: svn commit: r1024394 - /subversion/site/publish/packages.html

2010-10-29 Thread Greg Stein
On Thu, Oct 28, 2010 at 08:42, Daniel Shahaf wrote: >... > As the page stands now, the "professionally supported and certified" is > just lots of words that add nothing over "maintained by".  And > information-freeness is Bad. I disagree on this one. "Maintained by Jeremy Whitlock" says something

Re: svn commit: r1024394 - /subversion/site/publish/packages.html

2010-10-29 Thread Daniel Shahaf
Greg Stein wrote on Fri, Oct 29, 2010 at 15:17:39 -0400: > On Thu, Oct 28, 2010 at 08:42, Daniel Shahaf wrote: > >... > > As the page stands now, the "professionally supported and certified" is > > just lots of words that add nothing over "maintained by".  And > > information-freeness is Bad. > >

Re: svn commit: r1024394 - /subversion/site/publish/packages.html

2010-10-29 Thread Greg Stein
On Fri, Oct 29, 2010 at 17:00, Daniel Shahaf wrote: > Greg Stein wrote on Fri, Oct 29, 2010 at 15:17:39 -0400: >> On Thu, Oct 28, 2010 at 08:42, Daniel Shahaf wrote: >> >... >> > As the page stands now, the "professionally supported and certified" is >> > just lots of words that add nothing over