aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Resources/007_RegionStore.sql
diff options
context:
space:
mode:
authorSean Dague2008-07-03 19:41:01 +0000
committerSean Dague2008-07-03 19:41:01 +0000
commita9b3c2582a5a31464c0ab94fe88494fd75b4db29 (patch)
treea5ef2af14f49831beca83c934864360ae63ced86 /OpenSim/Data/MySQL/Resources/007_RegionStore.sql
parentmigrate the myisam mysql regions to innodb (diff)
downloadopensim-SC_OLD-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.zip
opensim-SC_OLD-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.tar.gz
opensim-SC_OLD-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.tar.bz2
opensim-SC_OLD-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.tar.xz
add 3 migrations, 1 each for prims, primshapes, and primitems
to move all their UUID stores from varchar(255) -> char(36). Based on past evidence, this should help with performance.
Diffstat (limited to 'OpenSim/Data/MySQL/Resources/007_RegionStore.sql')
-rw-r--r--OpenSim/Data/MySQL/Resources/007_RegionStore.sql25
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/007_RegionStore.sql b/OpenSim/Data/MySQL/Resources/007_RegionStore.sql
new file mode 100644
index 0000000..404d248
--- /dev/null
+++ b/OpenSim/Data/MySQL/Resources/007_RegionStore.sql
@@ -0,0 +1,25 @@
1BEGIN;
2
3ALTER TABLE prims change UUID UUIDold varchar(255);
4ALTER TABLE prims change RegionUUID RegionUUIDold varchar(255);
5ALTER TABLE prims change CreatorID CreatorIDold varchar(255);
6ALTER TABLE prims change OwnerID OwnerIDold varchar(255);
7ALTER TABLE prims change GroupID GroupIDold varchar(255);
8ALTER TABLE prims change LastOwnerID LastOwnerIDold varchar(255);
9ALTER TABLE prims add UUID char(36);
10ALTER TABLE prims add RegionUUID char(36);
11ALTER TABLE prims add CreatorID char(36);
12ALTER TABLE prims add OwnerID char(36);
13ALTER TABLE prims add GroupID char(36);
14ALTER TABLE prims add LastOwnerID char(36);
15UPDATE prims set UUID = UUIDold, RegionUUID = RegionUUIDold, CreatorID = CreatorIDold, OwnerID = OwnerIDold, GroupID = GroupIDold, LastOwnerID = LastOwnerIDold;
16ALTER TABLE prims drop UUIDold;
17ALTER TABLE prims drop RegionUUIDold;
18ALTER TABLE prims drop CreatorIDold;
19ALTER TABLE prims drop OwnerIDold;
20ALTER TABLE prims drop GroupIDold;
21ALTER TABLE prims drop LastOwnerIDold;
22ALTER TABLE prims add constraint primary key(UUID);
23ALTER TABLE prims add index prims_regionuuid(RegionUUID);
24
25COMMIT; \ No newline at end of file