This commit is contained in:
2018-10-11 22:16:31 +00:00
parent 9de3924286
commit 3098be3cc2
5 changed files with 19 additions and 20 deletions

View File

@@ -26,6 +26,17 @@ Branch / tags / repository
- Currently it's not an issue, but maybe it should be done properly - Currently it's not an issue, but maybe it should be done properly
Remove widget route from release (or hide it) but keep in debug Remove widget route from release (or hide it) but keep in debug
(But...would it be handy for diagnosing things??)
DB INDEXES / PERFORMANCE
- Absolutely have to fine tune the indexes before release.
- Found a lot of useful info on examining index usage with postgres, there are some built in stats in Postgres that show how indexes are being used and or not used properly or usefully
- A quick search should show many ways to query for used tables etc
- Monitor unussed indexes: https://jmorano.moretrix.com/2014/02/postgresql-monitor-unused-indexes/
- Many queries to do with tuning: https://gist.github.com/ruckus/5718112
- Useful for learning: https://www.datadoghq.com/blog/postgresql-monitoring/
-
DOCUMENTATION TODO's DOCUMENTATION TODO's

View File

@@ -29,14 +29,9 @@ Once that is done then can steam ahead on the biz objects but until I have the c
IMMEDIATE ITEMS: IMMEDIATE ITEMS:
================ ================
- Put up copy to devops, build huge dataset, run all tests, pound it with 1000 runs, shake it out - Put up copy to devops, build huge dataset, run all tests, pound it with 1000 runs, shake it out
- Starting 1000 test runs at 2018-10-9-4:12pm - Starting 1000 test runs at 2018-10-9-4:12pm
- Seeder.SeedDatabase should accept a JobId parameter so it can log each step in the job if present
-TrialBiz line 73 calls it and should be changed to pass the JobId
- Seeder should be changed to log job info for each step
- Should server show uptime? - Should server show uptime?
- Log route: Add a route to download *all* log files as a single zip archive which will make life much easier for analysis - Log route: Add a route to download *all* log files as a single zip archive which will make life much easier for analysis
@@ -47,14 +42,6 @@ IMMEDIATE ITEMS:
FUTURE ITEMS: FUTURE ITEMS:
============= =============
DB INDEXES / PERFORMANCE
- Absolutely have to fine tune the indexes before release.
- Found a lot of useful info on examining index usage with postgres, there are some built in stats in Postgres that show how indexes are being used and or not used properly or usefully
- A quick search should show many ways to query for used tables etc
- Monitor unussed indexes: https://jmorano.moretrix.com/2014/02/postgresql-monitor-unused-indexes/
- Many queries to do with tuning: https://gist.github.com/ruckus/5718112
- Useful for learning: https://www.datadoghq.com/blog/postgresql-monitoring/
-
CLIENT SHELL CLIENT SHELL

View File

@@ -369,7 +369,8 @@ namespace AyaNova
#if (DEBUG) #if (DEBUG)
//TESTING //TESTING
ServerBootConfig.AYANOVA_PERMANENTLY_ERASE_DATABASE = TESTING_REFRESH_DB; if (TESTING_REFRESH_DB)
ServerBootConfig.AYANOVA_PERMANENTLY_ERASE_DATABASE = TESTING_REFRESH_DB;
//TESTING //TESTING
#endif #endif
@@ -403,7 +404,7 @@ namespace AyaNova
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.HugeForLoadTest);//############################################################################################# Util.Seeder.SeedDatabase(Util.Seeder.SeedLevel.LargeCorporateMultiRegionalTrialDataSet);//#############################################################################################
} }
//TESTING //TESTING
#endif #endif

View File

@@ -236,7 +236,7 @@ namespace AyaNova.Biz
/// <param name="statusText"></param> /// <param name="statusText"></param>
internal static OpsJobLog LogJob(Guid jobId, string statusText) internal static OpsJobLog LogJob(Guid jobId, string statusText)
{ {
return LogJob(jobId, statusText); return LogJob(jobId, statusText, null);
} }
/// <summary> /// <summary>
@@ -245,7 +245,7 @@ namespace AyaNova.Biz
/// <param name="jobId"></param> /// <param name="jobId"></param>
/// <param name="statusText"></param> /// <param name="statusText"></param>
/// <param name="ct"></param> /// <param name="ct"></param>
internal static OpsJobLog LogJob(Guid jobId, string statusText, AyContext ct = null) internal static OpsJobLog LogJob(Guid jobId, string statusText, AyContext ct)
{ {
if (ct == null) if (ct == null)
ct = ServiceProviderProvider.DBContext; ct = ServiceProviderProvider.DBContext;

View File

@@ -12,8 +12,8 @@ namespace raven_integration
{ {
private static HttpClient client { get; } = new HttpClient(); private static HttpClient client { get; } = new HttpClient();
private static string API_BASE_URL = "http://localhost:7575/api/v8.0/"; // private static string API_BASE_URL = "http://localhost:7575/api/v8.0/";
//private static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/"; private static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/";
public static string TEST_DATA_FOLDER = @"..\..\..\testdata\"; public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";
@@ -23,7 +23,7 @@ namespace raven_integration
public static string Uniquify(string s) public static string Uniquify(string s)
{ {
// return s + " " + Auto.GetNext().ToString(); // return s + " " + Auto.GetNext().ToString();
return s + " " + (Auto.GetNext() + ((DateTimeOffset)DateTime.Now).ToUnixTimeMilliseconds()).ToString(); return s + " " + (Auto.GetNext() + ((DateTimeOffset)DateTime.Now).ToUnixTimeMilliseconds()).ToString();
} }