diff options
author | Sean Dague | 2008-07-15 20:06:58 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-15 20:06:58 +0000 |
commit | 2f46ab50969a1541417944952c9bb5a948ec7ec1 (patch) | |
tree | f131d1187d8db036def33b7756b743ecab836743 /OpenSim/Data | |
parent | added new ParentUUID property to map out from SOP. (diff) | |
download | opensim-SC_OLD-2f46ab50969a1541417944952c9bb5a948ec7ec1.zip opensim-SC_OLD-2f46ab50969a1541417944952c9bb5a948ec7ec1.tar.gz opensim-SC_OLD-2f46ab50969a1541417944952c9bb5a948ec7ec1.tar.bz2 opensim-SC_OLD-2f46ab50969a1541417944952c9bb5a948ec7ec1.tar.xz |
add migration for SceneGroupID to char(36) plus add an index. This
should actually speed up deletes substantially, especially for large
regions, as this was a table scan before.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/011_RegionStore.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/011_RegionStore.sql b/OpenSim/Data/MySQL/Resources/011_RegionStore.sql new file mode 100644 index 0000000..ab01969 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/011_RegionStore.sql | |||
@@ -0,0 +1,9 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | ALTER TABLE prims change SceneGroupID SceneGroupIDold varchar(255); | ||
4 | ALTER TABLE prims add SceneGroupID char(36); | ||
5 | UPDATE prims set SceneGroupID = SceneGroupIDold; | ||
6 | ALTER TABLE prims drop SceneGroupIDold; | ||
7 | ALTER TABLE prims add index prims_scenegroupid(SceneGroupID); | ||
8 | |||
9 | COMMIT; \ No newline at end of file | ||