diff options
author | Eike Stepper | 2008-11-04 12:01:13 +0000 |
---|---|---|
committer | Eike Stepper | 2008-11-04 12:01:13 +0000 |
commit | 98df5795b4ba6ac478e4a283fabeb6a3d04b374d (patch) | |
tree | 7e93d023ce6e8fea31c4b9479040527ed460e1ae /plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java | |
parent | 29d2ec870a4666f4ddfba4bcd0727aa60953eafc (diff) | |
download | cdo-98df5795b4ba6ac478e4a283fabeb6a3d04b374d.tar.gz cdo-98df5795b4ba6ac478e4a283fabeb6a3d04b374d.tar.xz cdo-98df5795b4ba6ac478e4a283fabeb6a3d04b374d.zip |
[250411] [DB] Create DB indexes for mapped tables
https://bugs.eclipse.org/bugs/show_bug.cgi?id=250411
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java index 3403b023d7..b4a9fb317d 100644 --- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java +++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java @@ -81,6 +81,9 @@ public class CDODBSchema extends DBSchema public static final IDBIndex INDEX_PACKAGES_URI = // PACKAGES.addIndex(IDBIndex.Type.UNIQUE, PACKAGES_URI); + public static final IDBIndex INDEX_PACKAGES_PARENT = // + PACKAGES.addIndex(IDBIndex.Type.NON_UNIQUE, PACKAGES_PARENT); + /** * DBTable cdo_classes */ @@ -104,6 +107,9 @@ public class CDODBSchema extends DBSchema public static final IDBIndex INDEX_CLASSES_PK = // CLASSES.addIndex(IDBIndex.Type.PRIMARY_KEY, CLASSES_ID); + public static final IDBIndex INDEX_CLASSES_PACKAGE = // + CLASSES.addIndex(IDBIndex.Type.NON_UNIQUE, CLASSES_PACKAGE); + /** * DBTable cdo_supertypes */ @@ -159,6 +165,9 @@ public class CDODBSchema extends DBSchema public static final IDBIndex INDEX_FEATURES_PK = // FEATURES.addIndex(IDBIndex.Type.PRIMARY_KEY, FEATURES_ID); + public static final IDBIndex INDEX_FEATURES_CLASS = // + FEATURES.addIndex(IDBIndex.Type.NON_UNIQUE, FEATURES_CLASS); + /** * Name of object table */ |