mirror of
https://github.com/opensim/opensim.git
synced 2026-05-16 03:36:04 +08:00
to move all their UUID stores from varchar(255) -> char(36). Based on past evidence, this should help with performance.
9 lines
247 B
PL/PgSQL
9 lines
247 B
PL/PgSQL
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; |