summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-06-02 00:36:55 (EDT)
committerEike Stepper2008-06-02 00:36:55 (EDT)
commit6bd26133beec45d590260cb7655b978ca8b70a41 (patch)
treee2f689b2fbae4c5b19389aaf458ee534ae68d2c2
parent7dde9f25e6985370aff5c6368c81a30d1a2a700f (diff)
downloadcdo-6bd26133beec45d590260cb7655b978ca8b70a41.zip
cdo-6bd26133beec45d590260cb7655b978ca8b70a41.tar.gz
cdo-6bd26133beec45d590260cb7655b978ca8b70a41.tar.bz2
[234839] Performance problem when adding to a resource.content
https://bugs.eclipse.org/bugs/show_bug.cgi?id=234839
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java
index de18e55..21adf43 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java
@@ -41,6 +41,18 @@ public interface CDOView extends CDOProtocolView, INotifier
public boolean hasUniqueResourceContents();
+ /**
+ * Specifies whether the contents list of resources will be unique or not.
+ * <p>
+ * This property is transient in that it does not stick with resources outside of the scope of this view. Especially
+ * it will not be persisted with resources in the repository. Each new view will start with <code>true</code> as a
+ * default value. Changing to <code>false</code> will subsequently apply to all resources being loaded or created.
+ * <p>
+ * Notice that the resource contents is a containment list and as such <b>must be</b> unique. Setting this property to
+ * <code>false</code> is only recommended for performance optimization when uniqueness is granted by other means.
+ * Violating the uniqueness constraint will result in unpredictable behaviour and possible corruption of the
+ * repository!
+ */
public void setUniqueResourceContents(boolean uniqueResourceContents);
public boolean isInvalidationNotificationsEnabled();