Changes

Jump to navigation Jump to search
No change in size ,  14:11, 8 December 2010
no edit summary
#: Query: <pre>insert nodes <a/> into root(), delete nodes //a</pre>
#: Result: Node <a/> is still in the database, because the delete function didn't find the nodes inserted by the insert function.
 
==Effects on Your Documents==
<p>In BaseX, all updates are performed on database nodes. This is why update operations
never affect the original input file. You can, however, use the [[Commands|EXPORT]] command or the fn:put() function to create an updated XML file. Turning on the WRITEBACK property ([[Commands|SET Command]]) directly propagates changes of your database to the original input file. Make sure you back up your data in advance, as this approach modifies the underlying XML file.</p>
 
==Indexes==
<p>As BaseX aims mainly for efficiency, the maintenance of indexes is left to the user.
This requires the user to call the [[Commands#Optimize|Optimize]]
command if up-to-date index structures are
necessary. Using this approach guarantees fast updates and fast access at the same time.</p>
==New Expressions==
== fn:put() Function==
<p>FN:put() is also part of the XQUF and enables the user to serialize XDM instances to secondary storage. It is executed at the end of a snapshot. Serialized documents therefore reflect all changes made effective during a query.</p>
 
==Effects on Your Documents==
<p>In BaseX, all updates are performed on database nodes. This is why update operations
never affect the original input file. You can, however, use the [[Commands|EXPORT]] command or the fn:put() function to create an updated XML file. Turning on the WRITEBACK property ([[Commands|SET Command]]) directly propagates changes of your database to the original input file. Make sure you back up your data in advance, as this approach modifies the underlying XML file.</p>
 
==Indexes==
<p>As BaseX aims mainly for efficiency, the maintenance of indexes is left to the user.
This requires the user to call the [[Commands#Optimize|Optimize]]
command if up-to-date index structures are
necessary. Using this approach guarantees fast updates and fast access at the same time.</p>
==Fragments==
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu