This commit is contained in:
2018-09-27 22:42:48 +00:00
parent 8e843d526f
commit ae86d05485
3 changed files with 8 additions and 17 deletions

View File

@@ -34,22 +34,12 @@ IMMEDIATE ITEMS:
- 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
- Is generating non-unique names causing crash due to validation error. Add uniqufication code, maybe just a serial number
- 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
- BUG BUG: 2018-09-26 16:47:34.3677|INFO|Seeder|Seeding 100 user(s)
2018-09-26 16:47:34.4053|INFO|Seeder|Seeding 100 user(s)
2018-09-26 16:47:34.4468|INFO|Seeder|Seeding 20000 Widget(s)
2018-09-26 16:47:34.5704|INFO|Seeder|Seeding completed successfully
2018-09-26 16:47:34.5704|INFO|Seeder|Seeder: setting server state back to Open
2018-09-26 16:47:34.5704|INFO|AyaNova.Startup|BOOT: COMPLETED - SERVER IS NOW OPEN
2018-09-26 16:47:47.0091|INFO|Seeder|User seeding completed
2018-09-26 16:47:47.0864|INFO|Seeder|User seeding completed
It's not awaiting the generation and instead is opening the server immediately and saying seeding completed when it isn't
- LOG WARNING??
- Why the warning about first/firstordefault??

View File

@@ -405,8 +405,9 @@ namespace AyaNova
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.SmallOneManShopTrialDataSet);
//Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.LargeCorporateMultiRegionalTrialDataSet);
//Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.HugeForLoadTest);
}
//TESTING
#endif

View File

@@ -31,7 +31,7 @@ namespace AyaNova.Core
//License server address
private const string LICENSE_SERVER_URL = "https://rockfish.ayanova.com/";
// private const string LICENSE_SERVER_URL = "http://localhost:5000/";
// private const string LICENSE_SERVER_URL = "http://localhost:5000/";
//Scheduleable users
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
@@ -340,7 +340,7 @@ namespace AyaNova.Core
//dbid so I can test remotely without hassle
//TO USE: just hit the trial key request route once then the license fetch route and it should be easy peasy
log.LogCritical("WARNING License::RequestTrial - DEVELOPMENT TEST FORCING TRIAL DB KEY ID. UPDATE BEFORE RELEASE!!");
DbId=TEST_TRIAL_KEY_DBID;
DbId = TEST_TRIAL_KEY_DBID;
//TESTING
@@ -497,7 +497,7 @@ namespace AyaNova.Core
{
try
{
var CurrentInDbKeyRecord = ctx.License.FirstOrDefault();
var CurrentInDbKeyRecord = ctx.License.OrderBy(x => x.Id).FirstOrDefault();
if (CurrentInDbKeyRecord == null)
throw new ApplicationException("E1020 - Can't install key, no key record found");