This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
PRIORITY - ALWAYS Lowest level stuff first
|
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?
|
todo: BizRoles.cs seems to get hammered on every single request, is it efficient?
|
||||||
- Why is it not cached in some way?
|
- Why is it not cached in some way?
|
||||||
- Look into Lazy initialization (i.e. private static readonly Lazy<IDictionary<string, string>> mappings ....etc)
|
- Look into Lazy initialization (i.e. private static readonly Lazy<IDictionary<string, string>> mappings ....etc)
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ namespace AyaNova.Generator
|
|||||||
private readonly IServiceProvider provider;
|
private readonly IServiceProvider provider;
|
||||||
|
|
||||||
#if(DEBUG)
|
#if(DEBUG)
|
||||||
private const int GENERATE_SECONDS = 60;
|
private const int GENERATE_SECONDS = 15;
|
||||||
#else
|
#else
|
||||||
private const int GENERATE_SECONDS = 60;
|
private const int GENERATE_SECONDS = 30;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// public GeneratorService(ILogger<GeneratorService> logger, AyContext dbcontext, ApiServerState apiServerState)
|
// public GeneratorService(ILogger<GeneratorService> logger, AyContext dbcontext, ApiServerState apiServerState)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ namespace AyaNova.Util
|
|||||||
apiServerState.SetOpsOnly("Seeding database");
|
apiServerState.SetOpsOnly("Seeding database");
|
||||||
//Erase all the data except for the license, schema and the manager user
|
//Erase all the data except for the license, schema and the manager user
|
||||||
await DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
|
await DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
|
||||||
apiServerState.SetOpsOnly("Seeding database");
|
apiServerState.SetOpsOnly("Seeding database with sample data");
|
||||||
|
|
||||||
// //Set the default user options of the manager account
|
// //Set the default user options of the manager account
|
||||||
// using (var cct = ServiceProviderProvider.DBContext)
|
// using (var cct = ServiceProviderProvider.DBContext)
|
||||||
|
|||||||
Reference in New Issue
Block a user