[366686] [DB] Reduce amount of update statements for non-audit mode
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366686

Additional performance test case
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/performance/DeletePerformanceTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/performance/DeletePerformanceTest.java
index 4e053e4..c1ae50d 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/performance/DeletePerformanceTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/performance/DeletePerformanceTest.java
@@ -55,17 +55,17 @@
   }
 
   @CleanRepositoriesBefore
-  public void testDeleteRandom() throws Exception
+  public void _testDeleteRandom() throws Exception
   {
     Company company = initModel();
     CDOTransaction transaction = (CDOTransaction)CDOUtil.getCDOObject(company).cdoView();
 
     msg("Starting to remove elements ...");
 
-    for (int i = 0; i < AMOUNT_ELEMENTS / 2; i++)
+    for (int i = 0; i < AMOUNT_ELEMENTS / 4; i++)
     {
       int currentSize = AMOUNT_ELEMENTS - i;
-      int indexToRemove = random.nextInt(currentSize);
+      int indexToRemove = random.nextInt(currentSize - 1);
 
       company.getCategories().remove(indexToRemove);
 
@@ -76,14 +76,14 @@
   }
 
   @CleanRepositoriesBefore
-  public void testDeleteDeterministic() throws Exception
+  public void testDeleteEveryOther() throws Exception
   {
     Company company = initModel();
     CDOTransaction transaction = (CDOTransaction)CDOUtil.getCDOObject(company).cdoView();
 
     msg("Starting to remove elements ...");
 
-    for (int i = 0; i < AMOUNT_ELEMENTS / 2; i++)
+    for (int i = 0; i < AMOUNT_ELEMENTS / 4; i++)
     {
       int indexToRemove = AMOUNT_ELEMENTS / 2 - i;
 
@@ -95,4 +95,23 @@
     }
   }
 
+  @CleanRepositoriesBefore
+  public void _testDeleteAtBeginning() throws Exception
+  {
+    Company company = initModel();
+    CDOTransaction transaction = (CDOTransaction)CDOUtil.getCDOObject(company).cdoView();
+
+    msg("Starting to remove elements ...");
+
+    for (int i = 0; i < AMOUNT_ELEMENTS / 4; i++)
+    {
+      int indexToRemove = 0;
+
+      company.getCategories().remove(indexToRemove);
+
+      startProbing();
+      transaction.commit();
+      stopProbing();
+    }
+  }
 }