performance, index tuning etc

This commit is contained in:
2021-10-20 18:40:48 +00:00
parent 8f79c06344
commit 1770ca90a1
2 changed files with 4 additions and 3 deletions

2
.vscode/launch.json vendored
View File

@@ -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\\"
},

View File

@@ -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