Hi Pratik,
as Liam already suggested, the usual way of doing this is to work with two databases and update and optimize the aditional database. Next, you could try to use the UPDINDEX option, which will incrementally update your value index structures [1].
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Options#UPDINDEX ___________________________
On Fri, Mar 15, 2013 at 2:29 PM, Liam R E Quin liam@w3.org wrote:
On Fri, 2013-03-15 at 11:12 +0530, Pratik Kharwade wrote: [...]
While updating, the our application doesnt response till the updates are done. The user can't interact with the application.
Some initial thoughts:
The update should be done by a separate process or thread than the user interface code.
Update one document at a time: load a complete document to a temporary local file before telling BaseX to import it.
An alternative is to work with two databases, updating the non-live one and then switching over.
Liam
-- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk