Re: [basex-talk] Need help on Xquery create Collection using java

2012-10-18 Thread Lukas Kircher
Hi Riyaz,

1) do you use the [latest stable snapshot] or [latest release] of BaseX?

2) Could you equip us with some more facts about your case, like the
exact query, the document (structure) or maybe even an SSCCE? You
could also send it directly to one of us if you don't want to post it to the
list.

Regards,
Lukas


[latest stable snapshot] http://files.basex.org/releases/latest/
[latest release] http://files.basex.org/releases/7.3/


On Thu, Oct 18, 2012 at 6:54 AM, riyaz riyaz.ba...@intense.in wrote:

  Dear Team,

This is Riyaz from Hyderabad , India. I have been using X query
 since one and half year. I need help on the following query.

  When I add xmls of 199 MB to create collection using  new
 Add(xmlfilepath).execute(context) (JAVA), it is taking 440 MB on hard disk
 and 3 mins to complete the
 process. Is there any other way to reduce the size and time?

Thanks a ton in advance and would appreciate the earliest response.
 Please help me on this.

 --
 Thanks  Regards,
 Riyaz Shaik,
 In10^s Technologies Ltd.

 * What you risk reveals what you value.*

 ___
 BaseX-Talk mailing list
 BaseX-Talk@mailman.uni-konstanz.de
 https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk


___
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk


Re: [basex-talk] Need help on Xquery create Collection using java

2012-10-18 Thread Lukas Kircher
Hi Riyaz,

that's a good starting point - a huge load of things changed
with BaseX since 671, so just have a look.

Are you using the full text index?

Regards,
Lukas


On Thu, Oct 18, 2012 at 11:20 AM, riyaz riyaz.ba...@intense.in wrote:

  Dear Lukas,

 Thanks for the quick response.

 1) I am using Basex671.jar and basex-api.jar. Seems it is not latest
 one. I will check with latest jar and update you.

and also

 2)  while iterating in a for loop we are adding one by one xml and
 where each xml is of 100kb on an average to collection.

  199MB of multiple files( around 2000+ xml documents) to a single
 collection is taking 440 mb on harddisk.

 //strAtr is a string array and contains file paths
 for (int j = 0; j  strAtr.length; j++) {
  new Add(strAtr[j]).execute(context);
 }

 Please let me know if anything can be done, or anything needed for more
 clarification.

 --
 Thanks  Regards,
 Riyaz Shaik,
 In10^s Technologies Ltd.

 * What you risk reveals what you value.*




 On 10/18/2012 2:18 PM, Lukas Kircher wrote:

 just a little addition:

 Depending on the nature of the document you add
 and the kind of active indexes there will be some
 overhead in size and space.

 400MB/3min for a 199MB document sounds a little
 special though ...



 On Thu, Oct 18, 2012 at 10:33 AM, Lukas Kircher lukaskirch...@gmail.com 
 lukaskirch...@gmail.comwrote:


  Hi Riyaz,

 1) do you use the [latest stable snapshot] or [latest release] of BaseX?

 2) Could you equip us with some more facts about your case, like the
 exact query, the document (structure) or maybe even an SSCCE? You
 could also send it directly to one of us if you don't want to post it to
 the
 list.

 Regards,
 Lukas


 [latest stable snapshot] http://files.basex.org/releases/latest/
 [latest release] http://files.basex.org/releases/7.3/


 On Thu, Oct 18, 2012 at 6:54 AM, riyaz riyaz.ba...@intense.in 
 riyaz.ba...@intense.in wrote:


   Dear Team,

This is Riyaz from Hyderabad , India. I have been using X query
 since one and half year. I need help on the following query.

  When I add xmls of 199 MB to create collection using  new
 Add(xmlfilepath).execute(
 context) (JAVA), it is taking 440 MB on hard disk
 and 3 mins to complete the
 process. Is there any other way to reduce the size and time?

Thanks a ton in advance and would appreciate the earliest response.
 Please help me on this.

 --
 Thanks  Regards,
 Riyaz Shaik,
 In10^s Technologies Ltd.

 * What you risk reveals what you value.*

 ___
 BaseX-Talk mailing 
 listbasex-t...@mailman.uni-konstanz.dehttps://mailman.uni-konstanz.de/mailman/listinfo/basex-talk




___
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk


[basex-talk] BaseX Scala Client 0.5 released, this time with documentation

2012-10-18 Thread Manuel Bernhardt
Hi all,

I finally found / forcefully took the time and documented the Scala
Client library. The new release mostly brings documentation and uses
BaseX 7.3.

We have been using it for 5 months now and it works nicely.

One interesting feature if you're dealing with queries that return
large quantities of documents (and use Scala...) is the
StreamingClientSession which doesn't cache incoming results but
directly passes them on to be consumed by the client code.


Check it out here: https://github.com/delving/basex-scala-client

Cheers,

Manuel
___
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk