This commit is contained in:
2020-05-13 18:35:31 +00:00
parent acb75090a3
commit 17b4658ba0
3 changed files with 5 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
PRIORITY - ALWAYS Lowest level stuff first
=-=-=-=-
todo: why the fuck does it take so long fora job to start? Waht is the timer to check set to?
todo: check non-ops user can login during seeding operation
todo: BizRoles.cs seems to get hammered on every single request, is it efficient?
- Why is it not cached in some way?
- Look into Lazy initialization (i.e. private static readonly Lazy<IDictionary<string, string>> mappings ....etc)

View File

@@ -29,9 +29,9 @@ namespace AyaNova.Generator
private readonly IServiceProvider provider;
#if(DEBUG)
private const int GENERATE_SECONDS = 60;
private const int GENERATE_SECONDS = 15;
#else
private const int GENERATE_SECONDS = 60;
private const int GENERATE_SECONDS = 30;
#endif
// public GeneratorService(ILogger<GeneratorService> logger, AyContext dbcontext, ApiServerState apiServerState)

View File

@@ -88,7 +88,7 @@ namespace AyaNova.Util
apiServerState.SetOpsOnly("Seeding database");
//Erase all the data except for the license, schema and the manager user
await DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
apiServerState.SetOpsOnly("Seeding database");
apiServerState.SetOpsOnly("Seeding database with sample data");
// //Set the default user options of the manager account
// using (var cct = ServiceProviderProvider.DBContext)