From: Adam R. <ad...@ex...> - 2011-05-31 20:24:27
|
Well that depends on what your users are doing in a 'production' environment? Often with a database in a production environment people want to be able to query it, with queries they had not previously composed. Take a look in conf.xml, especially at the documentation in there for the 'query-pool' element... On 31 May 2011 20:36, Patrick Bosek <pat...@jo...> wrote: > interesting. I would tend to think neither is really important in a > production environment, so couldn't we just put a flag into the XQuery that > would force it to recompile? > > On Tue, May 31, 2011 at 1:16 PM, Adam Retter <ad...@ex...> wrote: >> >> Ah okay - this is actually a long standing issue and it would be great >> to get this fixed. The problem is that when we evaluate whether to >> serve the compiled version of an xquery we do not look at the >> last-modified time of any xquery modules that it includes - this >> should probably be fixed. >> >> However fixing this may introduce a performance drain as when you >> request a query we would have to examine it to determine all the >> modules, examine the modules for further included modules, and then >> read the metadata for each file so that we get the last-modified date. >> A preferable approach would be to move to an eagerly compiled system, >> whereby queries are compiled when saved into the database and the >> compiled form is kept somewhere, in this way the compiled queries can >> never be out of date. >> >> On 31 May 2011 18:20, Patrick Bosek <pat...@jo...> wrote: >> > I should probably be a little more specific here. I already have my >> > controller set up with: >> > >> > <ignore xmlns="http://exist.sourceforge.net/NS/exist"> >> > <cache-control cache="no"/> >> > </ignore> >> > >> > But, I still have situations where I have to go to my .xql and edit/save >> > it >> > after I make changes to one of my .xqm to get the changed .xqm to be >> > used. >> > >> > Also, I'm on 1.4.x >> > >> > Thanks, >> > >> > Patrick >> > >> > On Tue, May 31, 2011 at 11:07 AM, Patrick Bosek >> > <pat...@jo...> >> > wrote: >> >> >> >> Hi everyone, >> >> >> >> Does anyone know how to turn off XQuery caching for one specific >> >> xquery? >> >> Is there a flag I can put on the query somewhere that tells the parser >> >> to >> >> always rebuild it? >> >> >> >> >> >> Thanks! >> >> >> >> -- >> >> Patrick Bosek >> >> Jorsek Software >> >> Cell (585) 820 9634 >> >> Office (585) 239 6060 >> >> Jorsek.com >> >> >> > >> > >> > >> > -- >> > Patrick Bosek >> > Jorsek Software >> > Cell (585) 820 9634 >> > Office (585) 239 6060 >> > Jorsek.com >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Simplify data backup and recovery for your virtual environment with >> > vRanger. >> > Installation's a snap, and flexible recovery options mean your data is >> > safe, >> > secure and there when you need it. Data protection magic? >> > Nope - It's vRanger. Get your free trial download today. >> > http://p.sf.net/sfu/quest-sfdev2dev >> > _______________________________________________ >> > Exist-open mailing list >> > Exi...@li... >> > https://lists.sourceforge.net/lists/listinfo/exist-open >> > >> > >> >> >> >> -- >> Adam Retter >> >> eXist Developer >> { United Kingdom } >> ad...@ex... >> irc://irc.freenode.net/existdb > > > > -- > Patrick Bosek > Jorsek Software > Cell (585) 820 9634 > Office (585) 239 6060 > Jorsek.com > > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |