This commit is contained in:
2018-09-27 22:45:30 +00:00
parent ae86d05485
commit ce91f7fadb
2 changed files with 5 additions and 19 deletions

View File

@@ -30,24 +30,12 @@ IMMEDIATE ITEMS:
- Search and search text indexing - 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?? - 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) - 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 <generated>_1 in DbSet<License> select [<generated>_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) - 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, - 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 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

View File

@@ -404,10 +404,8 @@ namespace AyaNova
//TESTING //TESTING
if (TESTING_REFRESH_DB) if (TESTING_REFRESH_DB)
{ {
AyaNova.Core.License.Fetch(apiServerState, dbContext, _log); AyaNova.Core.License.Fetch(apiServerState, dbContext, _log);
Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.SmallOneManShopTrialDataSet); Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.HugeForLoadTest);
//Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.LargeCorporateMultiRegionalTrialDataSet);
//Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.HugeForLoadTest);
} }
//TESTING //TESTING
#endif #endif