Yes, thanks, it works.
I tested it with 2369 xml files and here are the results:
$ time ./basex -Vq"index:attributes(\"test\")" | wc -l
3071279
real 0m40.035s
user 0m31.419s
sys 0m9.478s
Markin Alex
Dear Alex,
thanks for your reproducible test case. By chance, we've released
snapshot yesterday, which should provide a fix for the problem you've
been addressing..
http://files.basex.org/releases/latest/
Feel free to give us an update,
Christian
________________________________________
> _______________________________________________
On Thu, May 31, 2012 at 8:23 PM, Alex Markin <alexanius@gmail.com> wrote:
> Hello, BaseX team.
>
> I have a question about attribute indexing in basex. For example i have an
> xml file (in attachement). I execute the following sequence of commands:
>
> $ ./basex -Vc"SET ATTRINDEX true;SET UPDINDEX true;CREATE DB test"
> ATTRINDEX: ON
> UPDINDEX: ON
> Database 'test' created in 90.22 ms.
>
> $ ./basex -Vc"OPEN test;CREATE INDEX ATTRIBUTE;OPTIMIZE"
> Database 'test' was opened in 70.03 ms.
> Index 'ATTRIBUTE' created in 39.48 ms.
> Database 'test' was optimized in 31.14 ms.
>
> $ ./basex -Vq"index:attributes(\"test\")"
> <value count="70"> 0)(286,
> 1)‚’[_ 4¦°’䐪J'(*¤#
(1,
> 1)</value>
> <value count="3">86,
> 1)‚’[_ 4¦°’䐪J'(*¤#
(1,
> 1)(1, 12)-fi</value>
> <value count="1">/home/alex/tmp/erts/ntbuild.E</value>
> ...
> Out of Main Memory.
>
> There are no indices, given in first lines and some strange "Out of memory".
> What's wrong with this way of getting indices and how to fix it?
>
> Markin Alex
>
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>