diff options
author | Sean Dague | 2008-07-03 19:41:01 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-03 19:41:01 +0000 |
commit | a9b3c2582a5a31464c0ab94fe88494fd75b4db29 (patch) | |
tree | a5ef2af14f49831beca83c934864360ae63ced86 /OpenSim/Data/MySQL/Resources/008_RegionStore.sql | |
parent | migrate the myisam mysql regions to innodb (diff) | |
download | opensim-SC-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.zip opensim-SC-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.tar.gz opensim-SC-a9b3c2582a5a31464c0ab94fe88494fd75b4db29.tar.bz2 opensim-SC-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/008_RegionStore.sql')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/008_RegionStore.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/008_RegionStore.sql b/OpenSim/Data/MySQL/Resources/008_RegionStore.sql new file mode 100644 index 0000000..7bc61c0 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/008_RegionStore.sql | |||
@@ -0,0 +1,9 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | ALTER TABLE primshapes change UUID UUIDold varchar(255); | ||
4 | ALTER TABLE primshapes add UUID char(36); | ||
5 | UPDATE primshapes set UUID = UUIDold; | ||
6 | ALTER TABLE primshapes drop UUIDold; | ||
7 | ALTER TABLE primshapes add constraint primary key(UUID); | ||
8 | |||
9 | COMMIT; \ No newline at end of file | ||