aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorSean Dague2008-07-15 20:06:58 +0000
committerSean Dague2008-07-15 20:06:58 +0000
commit2f46ab50969a1541417944952c9bb5a948ec7ec1 (patch)
treef131d1187d8db036def33b7756b743ecab836743 /OpenSim/Data
parentadded new ParentUUID property to map out from SOP. (diff)
downloadopensim-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.sql9
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 @@
1BEGIN;
2
3ALTER TABLE prims change SceneGroupID SceneGroupIDold varchar(255);
4ALTER TABLE prims add SceneGroupID char(36);
5UPDATE prims set SceneGroupID = SceneGroupIDold;
6ALTER TABLE prims drop SceneGroupIDold;
7ALTER TABLE prims add index prims_scenegroupid(SceneGroupID);
8
9COMMIT; \ No newline at end of file