performance, index tuning etc
This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -53,7 +53,7 @@
|
||||
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
|
||||
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
|
||||
"AYANOVA_SERVER_TEST_MODE": "true",
|
||||
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "medium",
|
||||
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "large",
|
||||
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
|
||||
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\"
|
||||
},
|
||||
|
||||
@@ -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