Basex API: repeated execution of same query over different input
Wednesday, 27 December 2017 · 2 messages
HE
Hondros, Constantine (ELS-AMS)27 Dec 2017 13:43 #
I want to be able to execute the same XQuery hundreds of thousands (even millions) of times over different XML input.
Is there a way to avoid re-compiling the query itself every time? It looks to me like using either XQuery.execute(ctx) or the QueryProcessor class will end up re-parsing the query itself.
I know that Basex is fast in this, but I will end up with a performance hit over time. Just wondering whether things have evolved since this thread:
https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg03064.html
Thanks,
Constantine Hondros
Senior Manager Content Analytics & Content Engineering
Digital Transformation
Elsevier BV
Radarweg 29 | 1043 NX Amsterdam | the Netherlands
Tel: +31 20 4852772 | Mob: +31610735630
E-mail: c.hondros at elsevier.com<mailto:m.nauta at elsevier.com> [cid:image001.jpg at 01CBEEC6.C17A8AC0]
Amsterdam | Chennai | Exeter | Oxford | Shannon | St. Louis
________________________________
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands.
CG
Christian Grün27 Dec 2017 14:09 #
Hi Constantine,
We think about providing precompilation as a commercial feature (because we’ll need to spend quite some time to make it happen). Would you (or anyone else) possibly be interested in paying for such a feature?
Cheers,
Christian
Am 27.12.2017 1:44 nachm. schrieb "Hondros, Constantine (ELS-AMS)" < C.Hondros at elsevier.com>:
I want to be able to execute the same XQuery hundreds of thousands (even millions) of times over different XML input.
Is there a way to avoid re-compiling the query itself every time? It looks to me like using either XQuery.execute(ctx) or the QueryProcessor class will end up re-parsing the query itself.
I know that Basex is fast in this, but I will end up with a performance hit over time. Just wondering whether things have evolved since this thread:
https://www.mail-archive.com/basex-talk at mailman.uni-
konstanz.de/msg03064.html
Thanks,
*Constantine Hondros*
Senior Manager Content Analytics & Content Engineering
*Digital Transformation*
*Elsevier BV*
Radarweg 29 | 1043 NX Amsterdam | the Netherlands
<https://maps.google.com/?q=Radarweg+29+%7C+1043+NX+Amsterdam+%7C+the+Netherlands&entry=gmail&source=g> Tel: +31 20 4852772 <+31%2020%20485%202772> | Mob: +31610735630 <+31%206%2010735630>
E-mail: *c.hondros at elsevier.com <m.nauta at elsevier.com>* [image: cid:image001.jpg at 01CBEEC6.C17A8AC0]
Amsterdam | Chennai | Exeter | Oxford | Shannon | St. Louis
------------------------------
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands
<https://maps.google.com/?q=Radarweg+29,+1043+NX+Amsterdam,+The+Netherlands&entry=gmail&source=g>, Registration No. 33156677, Registered in The Netherlands.
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery