Hi Eric
Hi All,
A load testing tool (jmeter) has the capability to write out its test
results as XML. This is great as I
search and perform metrics calculations on this data using XQuery.
However, the number of XML files can grow to some volume and
it is hard to tell when a test is actually over which would mean its
xml result file is finished being written to. The solution to this is
to use Inotify
to monitor the directory where these files are stored and add them to
the database if they do not exist or delete the file and re-add it to
BaseX if it already has been added and is just in need of an update
(do to a running test). So that is the solution I will implement --
if anyone has anything cleaner I am all ears.
I thank the BaseX mailing list for helping me with this.
Regards,
Eric
On Sat, Jul 2, 2011 at 3:29 AM, Huib Verwey <Huib.Verwey@mpi.nl> wrote:
> Hi Eric,
> could you give an example of a use case?
> For monitoring changes to files and acting upon them Google tells me I could
> use inotify or incron.
> From your setup I suspect you'll use BaseX as a read-only store, maybe just
> for searching? So you won't use the XQuery Update Facility for modifying XML
> in the database?
> Hartelijke groet,
> Huib Verweij.
> --
> Drs. Huib Verweij
> Senior software developer - The Language Archive
> Max Planck Institute for Psycholinguistics
> P.O. Box 310
> 6500 AH Nijmegen
> The Netherlands
> t +31-24-3521911
> e huib.verwey@mpi.nl
> w http://www.mpi.nl/
>
> Op 1 jul 2011, om 06:53 heeft Eric Jones het volgende geschreven:
>
> Hello all,
>
> I am new to BaseX. I want to know how one handles frequently updated
> xml files. Do you have to monitor the file with a third party tool and
> upon change drop the file from BaseX and re-add it?
>
> Regards,
> Eric
> _______________________________________________
> 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