diff --git a/.vscode/launch.json b/.vscode/launch.json index 259171c9..6b9a0d68 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -51,7 +51,7 @@ "AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles", "AYANOVA_METRICS_USE_INFLUXDB": "false", "AYANOVA_SERVER_TEST_MODE":"true", - "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL":"huge", + "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL":"small", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET":"-7", "AYANOVA_BACKUP_PG_DUMP_PATH":"C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\" diff --git a/server/AyaNova/biz/Search.cs b/server/AyaNova/biz/Search.cs index 2d876327..43f3a328 100644 --- a/server/AyaNova/biz/Search.cs +++ b/server/AyaNova/biz/Search.cs @@ -656,10 +656,10 @@ namespace AyaNova.Biz /// private static async Task ProcessKeywordsAsync(SearchIndexProcessObjectParameters p, bool newRecord) { -#if (DEBUG) - if (!p.ObjectType.HasAttribute(typeof(CoreBizObjectAttribute))) - throw new System.NotSupportedException($"Search::ProcessKeywords - Invalid type presented {p.ObjectType}"); -#endif +// #if (DEBUG) +// if (!p.ObjectType.HasAttribute(typeof(CoreBizObjectAttribute))) +// throw new System.NotSupportedException($"Search::ProcessKeywords - Invalid type presented {p.ObjectType}"); +// #endif List KeyWordList = await BreakAsync(p.TranslationId, p.Words); if (KeyWordList.Count == 0) return; diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index de4f29ef..819804df 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -44,6 +44,9 @@ namespace AyaNova.Util ***************************** WARNING: Be careful here, if a standard field is hideable and also it's DB SCHEMA is set to NON NULLABLE then the CLIENT end needs to set a default ***************************** Otherwise the hidden field can't be set and the object can't be saved EVER + + HOW TO FIND UNUSED INDEXES: https://gist.github.com/jberkus/6b1bcaf7724dfc2a54f3 + */ static int startingSchema = -1;