Dmitriy Shabanov | 1 Mar 2011 04:55
Picon
Gravatar

Re: Logging patterns

On Tue, Mar 1, 2011 at 2:59 AM, Ryan Graham <rxgraham <at> gmail.com> wrote:

I wanted to see if anyone can provide some advice on logging practices -- just general practices that seem to be working well for you all. In my scenario, I've setup a small pipeline processing mechanism where documents are passed through any number of XSLT stylesheets using transform:transform(). I typically store the results into a new collection in the database. I was wondering:
  • If using transform:transform(), where are my <xsl:message> calls going?
My guess, to console. 
  • Do I have access to eXist modules/functions in my stylesheet when using transform:transform() if I declare the namespaces?
  • Is it better to use util:log() / util:log-app()?
  • Is a custom solution using XUpdate and logging directly to the database acceptable?
No, you can't ... only eXist's xslt you will be able to give you access you 'all' eXist's features. 

--
Dmitriy Shabanov
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Wolfgang Meier | 1 Mar 2011 16:32
Gravatar

Re: length limit on constructed sequences?

> The problem here is how the xquery parser deals with the sequence
> constructor: it recursively translates the expression into nested pairs. We
> have to add a normalization step to flatten this. I'll put it on my todo.

Apart from causing stack overflows, sequence constructors did consume
too much memory. I fixed this in trunk yesterday. There should be no
limit to the length of the sequence now.

Wolfgang

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
Dannes Wessels | 1 Mar 2011 19:50

Re: lots of temp files being written (1.4.0 and 1.4.x branch)

Ok, we found the code, but no fix..... yet

On 1 Mar 2011, at 19:24 , Dannes Wessels wrote:

>> On the advice of others, I tried the updates made to the 1.4.x branch, but the problem remains.
> 
> I am pretty sure that we did actually fix this issue, quite some time ago. Sorry have to ask: please could you
double check if you really use a recent 1.4.1 version?

--
Dannes Wessels
eXist-db Open Source Native XML Database
e: dannes <at> exist-db.org
w: http://www.exist-db.org 

Attachment (smime.p7s): application/pkcs7-signature, 2217 bytes
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Markus Kaindl | 1 Mar 2011 17:40
Picon
Favicon

Re: Antw: Versioning with Update Extensions

Fair enough, it makes sense why it is disabled in the first place.
But it would help a lot to manually trigger a versioning event.
Unfortunately, I dont know how to implement this function.
So thanks in advance for your support and your help!

Markus

 
>>> Wolfgang Meier <wolfgang <at> exist-db.org> 23.2.2011 11:43 >>> 
> So just to be clear, do something like:
>
> update replace $old with $new
>
> ..doesn't cause a new version to be created?

Yes. The versioning trigger is not enabled for node level updates.
Creating a new revision for every small update would be overkill.

Markus is probably right that we should provide a way to manually
create a new version from an XQuery. It should be possible to
implement a simple function which does that, but I'll need to check
against the source code.

Wolfgang

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
Thomas White | 1 Mar 2011 22:44
Picon
Gravatar

Example of data replication between two eXist servers

I would really appreciate if somebody can provide a code snippet for data 
replication between two eXist servers without using the REST interface 
(which is disabled for security reasons).

Thomas 

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
Paolo Di Pietro | 2 Mar 2011 10:36

going crazy for an incredible behavior

Hi all,

 

I’m discovering a really strange behavior, and I spent all the day looking for a possible error, with no luck.

 

I got a (quite complex) piece of code, which give me an unexpected result.

 

Please, look at the following fragment, where the third line is commented:

 

                               return

                                               for $rel at $count in $relationships return (

                                                               (:if ($count ne 6) then () else :)

                                                                               let $uuid := $rel/mm:hasObject/ <at> rdf:resource

                                                                               let $el := $ont/*/rdf:Description[ <at> rdf:about eq $uuid]                                                                            

let $object :=

                                                                                              if (count($el/mm:isInstanceOf) gt 0) then

                                                                                                              element rdf:Description {

                                                                                                                             $el/ <at> *

                                                                                                                             ,$ont/*/rdf:Description[ <at> rdf:about eq $el/mm:isInstanceOf/ <at> rdf:resource]/*

                                                                                                              }

                                                                                              else

                                                                                                              $el

                                                                                              return

                                                                                                              support:getName($rel, $object,$context,false())

                                               )

 

If I run this piece of code the result is:

 

Scelta ente

Scelta ontologia

Tipi di dati di base (W3C-XML)

xs:byte

Accesso al sistema

mm:menu

gestione sistema

 

while,  uncommenting the third line, the result is:

 

menu favoriti

 

In the first run, I got seven lines (the sixth is incorrect), while in the second run I got just one line (which is correct) corresponding to the the sixth line of the commented version : WHY are the different?

 

Every suggestion is appreciated. I run dozen of tests, rebuid the indexes, reload the DB, with no luck.

 

Please help with some ideas.

 

Running 1.4.0-rev10440-20091111 on windows 7 x32 on vmware workstation

 

TIA

 

Paolo

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Dannes Wessels | 1 Mar 2011 19:24

Re: lots of temp files being written (1.4.0 and 1.4.x branch)

Hi,

On 28 Feb 2011, at 22:49 , William Summers wrote:

> On the advice of others, I tried the updates made to the 1.4.x branch, but the problem remains.

I am pretty sure that we did actually fix this issue, quite some time ago. Sorry have to ask: please could you
double check if you really use a recent 1.4.1 version?

I can't imagine tomcat has influence here............

D.

--
Dannes Wessels
eXist-db Open Source Native XML Database
e: dannes <at> exist-db.org
w: http://www.exist-db.org 

Attachment (smime.p7s): application/pkcs7-signature, 2217 bytes
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Raja | 2 Mar 2011 06:36
Picon
Picon
Favicon

Reduce eXist-db size in a production system -reg

Hi eXist users !!!

we are going to deploy a XRX style application using eXist-db as a back end XML DB. Now, we want to reduce the actual size of the eXist-db because by default it's have more options which is actually not needed for our application. So, what s the procedure to trim the eXist-db size.

PS: We are in the final stage to deploy , pls consider to give some better solution to give compact size to the user.

By
--
Rajamani Marimuthu
Junior Research Fellow-JRF
NIC -Open Technology Centre
Rajaji Bhavan
Besant Nagar,
Chennai - 90
Cell : 9791125383

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Paolo Di Pietro | 1 Mar 2011 23:32

going crazy for an incredible behavior

Hi all,

 

I’m discovering a really strange behavior, and I spent all the day looking for a possible error, with no luck.

 

I got a (quite complex) piece of code, which give me an unexpected result.

 

Please, look at the following fragment, where the third line is commented:

 

                               return

                                               for $rel at $count in $relationships return (

                                                               (:if ($count ne 6) then () else :)

                                                                               let $uuid := $rel/mm:hasObject/ <at> rdf:resource

                                                                               let $el := $ont/*/rdf:Description[ <at> rdf:about eq $uuid]                                                                            

let $object :=

                                                                                              if (count($el/mm:isInstanceOf) gt 0) then

                                                                                                              element rdf:Description {

                                                                                                                             $el/ <at> *

                                                                                                                             ,$ont/*/rdf:Description[ <at> rdf:about eq $el/mm:isInstanceOf/ <at> rdf:resource]/*

                                                                                                              }

                                                                                              else

                                                                                                              $el

                                                                                              return

                                                                                                              support:getName($rel, $object,$context,false())

                                               )

 

If I run this piece of code the result is:

 

Scelta ente

Scelta ontologia

Tipi di dati di base (W3C-XML)

xs:byte

Accesso al sistema

mm:menu

gestione sistema

 

while,  uncommenting the third line, the result is:

 

menu favoriti

 

In the first run, I got seven lines (the sixth is incorrect), while in the second run I got just one line (which is correct) corresponding to the the sixth line of the commented version : WHY are the different?

 

Every suggestion is appreciated. I run dozen of tests, rebuid the indexes, reload the DB, with no luck.

 

Please help with some ideas.

 

Running 1.4.0-rev10440-20091111 on windows 7 x32 on vmware workstation

 

TIA

 

Paolo

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Adam Retter | 2 Mar 2011 14:47

Re: Reduce eXist-db size in a production system -reg

> we are going to deploy a XRX style application using eXist-db as a back end
> XML DB. Now, we want to reduce the actual size of the eXist-db because by
> default it's have more options which is actually not needed for our
> application. So, what s the procedure to trim the eXist-db size.

Sorry do you mean the application itself rather than the db?
Perhaps you could tell us what you need? Also you can run eXist-db
with ./server.sh which should produce a minimal db without access to
the file system.

> PS: We are in the final stage to deploy , pls consider to give some better
> solution to give compact size to the user.
>
> By
> --
> Rajamani Marimuthu
> Junior Research Fellow-JRF
> NIC -Open Technology Centre
> Rajaji Bhavan
> Besant Nagar,
> Chennai - 90
> Cell : 9791125383
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data
> generated by your applications, servers and devices whether physical,
> virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>

--

-- 
Adam Retter

eXist Developer
{ United Kingdom }
adam <at> exist-db.org
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 

Gmane