aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Resources/008_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/008_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/008_RegionStore.sql')
-rw-r--r--OpenSim/Data/MySQL/Resources/008_RegionStore.sql9
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 @@
1BEGIN;
2
3ALTER TABLE primshapes change UUID UUIDold varchar(255);
4ALTER TABLE primshapes add UUID char(36);
5UPDATE primshapes set UUID = UUIDold;
6ALTER TABLE primshapes drop UUIDold;
7ALTER TABLE primshapes add constraint primary key(UUID);
8
9COMMIT; \ No newline at end of file