Permalink
Browse files

[performance] Drop redundant reindex operations in „update insert“. S…

…hould definitely increase update performance.
  • Loading branch information...
wolfgangmm committed Jan 27, 2014
1 parent 255bd8e commit 21941f860fb4f99f6a879ca0749073d4ef55387c
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/org/exist/dom/ElementImpl.java
@@ -479,8 +479,6 @@ public void appendChildren(Txn transaction, NodeList nodes, int child) throws DO
broker.getIndexController().setMode(StreamListener.STORE);
if (reindexRoot == null) {
listener = broker.getIndexController().getStreamListener();
- } else {
- broker.getIndexController().reindex(transaction, reindexRoot, StreamListener.STORE);
}
if (children == 0) {
// no children: append a new child
@@ -1228,8 +1226,6 @@ public void insertBefore(Txn transaction, NodeList nodes, Node refChild) throws
broker.getIndexController().setMode(StreamListener.STORE);
if (reindexRoot == null) {
listener = broker.getIndexController().getStreamListener();
- } else {
- broker.getIndexController().reindex(transaction, reindexRoot, StreamListener.STORE);
}
final StoredNode following = (StoredNode) refChild;
final StoredNode previous = (StoredNode) following.getPreviousSibling();
@@ -1280,8 +1276,6 @@ public void insertAfter(Txn transaction, NodeList nodes, Node refChild) throws D
broker.getIndexController().setMode(StreamListener.STORE);
if (reindexRoot == null) {
listener = broker.getIndexController().getStreamListener();
- } else {
- broker.getIndexController().reindex(transaction, reindexRoot, StreamListener.STORE);
}
final StoredNode previous = (StoredNode) refChild;
final StoredNode following = (StoredNode) previous.getNextSibling();

0 comments on commit 21941f8

Please sign in to comment.