mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
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.
This commit is contained in:
9
OpenSim/Data/MySQL/Resources/008_RegionStore.sql
Normal file
9
OpenSim/Data/MySQL/Resources/008_RegionStore.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE primshapes change UUID UUIDold varchar(255);
|
||||
ALTER TABLE primshapes add UUID char(36);
|
||||
UPDATE primshapes set UUID = UUIDold;
|
||||
ALTER TABLE primshapes drop UUIDold;
|
||||
ALTER TABLE primshapes add constraint primary key(UUID);
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user