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.
0.6.0-stable
Sean Dague 2008-07-15 20:06:58 +00:00
parent b5efb49d74
commit 2f46ab5096
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
BEGIN;
ALTER TABLE prims change SceneGroupID SceneGroupIDold varchar(255);
ALTER TABLE prims add SceneGroupID char(36);
UPDATE prims set SceneGroupID = SceneGroupIDold;
ALTER TABLE prims drop SceneGroupIDold;
ALTER TABLE prims add index prims_scenegroupid(SceneGroupID);
COMMIT;