diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 155bd6ec..100f24ed 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -30,24 +30,12 @@ IMMEDIATE ITEMS: - Search and search text indexing - - Create a test for search that searches the widgets LOREM text with huge dataset for performance testing + - Create a test for search that searches the widgets LOREM text + - Test with huge dataset for performance testing - bugbug: why is the single letter a being indexed? Missing shortness filter, A not in stopwords for english?? - Update all the other routes to include search indexing (attachments, tags etc, anything with text in it) - - SEEDER - - PAINFULLY slow to generate widgets, the db ops are taking orders of magnitude too long, can any db steps be saved?? - - Is it an issue if it keeps on working slowly in the background?? - - Took from 5pm to 642 am to do 1720 widgets of the 20000 called for and seemed very slow doing just one at that point - - Maybe do it in chunks at a time so that it will properly interleave with other types of data so there is some of everything all at once and slowly adds more - - - - LOG WARNING?? - - Why the warning about first/firstordefault?? - 2018-09-27 07:58:26.6301|WARN|AyaNova.Startup|License key not found in database, running in unlicensed mode - 2018-09-27 07:58:26.6442|INFO|AyaNova.Startup|DEBUG MODE TRIAL LICENSE KEY BEING FETCHED - 2018-09-27 07:58:27.1822|WARN|Microsoft.EntityFrameworkCore.Query|Query: '(from License _1 in DbSet select [_1]).FirstOrDefault()' uses First/FirstOrDefault/Last/LastOrDefault operation without OrderBy and filter which may lead to unpredictable results. - 2018-09-27 07:58:27.2694|INFO|Seeder|SEEDER: SeedDatabase, level is: LargeCorporateMultiRegionalTrialDataSet - + - EventLogProcessor.AddEntry: CHANGE this to save the context itself and then change all callers to handle that (remove save) - I originally didn't have the save in there because I thought subsequent code might all share in the single context save, however that's impossible as things like the search indexing require a save to harvest id's so it's not actually saving any time just adding complexity diff --git a/server/AyaNova/Startup.cs b/server/AyaNova/Startup.cs index a36a7156..935ce0e5 100644 --- a/server/AyaNova/Startup.cs +++ b/server/AyaNova/Startup.cs @@ -404,10 +404,8 @@ namespace AyaNova //TESTING if (TESTING_REFRESH_DB) { - AyaNova.Core.License.Fetch(apiServerState, dbContext, _log); - Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.SmallOneManShopTrialDataSet); - //Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.LargeCorporateMultiRegionalTrialDataSet); - //Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.HugeForLoadTest); + AyaNova.Core.License.Fetch(apiServerState, dbContext, _log); + Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.HugeForLoadTest); } //TESTING #endif