On XWiki 16.4.6 I noticed the following behaviour: While doing some large amount of operations involving replacing content, the thread doing the work was often found with the following stacktrace in the mysql dump:
In the database, when showing the full process list, the delete from xwikilinks based on a value of the xwl_doc_id column was appearing very often upon subsequent calls (which is a sign that the system is spending a lot of time in this function). The xwikilinks table has no indexes:
A slow delete filtered by a column that is not indexed makes a lot of sense, and there is no good reason for this table to not be indexed. |