performance, index tuning etc
This commit is contained in:
@@ -468,6 +468,8 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
//create translation TEXT tables
|
||||
await ExecQueryAsync("CREATE TABLE atranslation (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL UNIQUE, baselanguage TEXT NOT NULL, stock BOOL, cjkindex BOOL default false)");
|
||||
await ExecQueryAsync("CREATE TABLE atranslationitem (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, translationid BIGINT NOT NULL REFERENCES atranslation (id), key TEXT NOT NULL, display TEXT NOT NULL)");
|
||||
//a lot of queries for subsets of translations
|
||||
await ExecQueryAsync("CREATE INDEX idx_atranslationitem_key ON atranslationitem (key)");
|
||||
|
||||
|
||||
//Load the default TRANSLATIONS
|
||||
@@ -758,7 +760,6 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
|
||||
//indexes to speed up creation (validation)
|
||||
await ExecQueryAsync("CREATE INDEX idx_aunit_serial ON aunit(serial)");
|
||||
await ExecQueryAsync("CREATE INDEX idx_aunit_modelid ON aunit (unitmodelid ASC NULLS LAST)");
|
||||
|
||||
|
||||
//LOANUNIT
|
||||
|
||||
Reference in New Issue
Block a user