Basex API: repeated execution of same query over different input
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@mailman.uni-konstanz.de/msg03064.htm... 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@elsevier.com<mailto:m.nauta@elsevier.com> [cid:image001.jpg@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.
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@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@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@elsevier.com <m.nauta@elsevier.com>* [image: cid:image001.jpg@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.
participants (2)
-
Christian Grün -
Hondros, Constantine (ELS-AMS)