=Updates=
Updates in BaseX are generally very fast, because the index structures will be invalidated by updates. As a result, subsequent queries may be executed more slowly than before the update. There are different alternatives to cope with this:
* After the execution of one or more update operations, the [[Commands#OPTIMIZE|OPTIMIZE]] command or the [[Database Module#db:optimize|db:optimize]] function can be called to rebuild the index structures.