-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #776 from OHDSI/issue-735
refactor: performance logs are now captured directly instead of through console logs
- Loading branch information
Showing
3 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
-- DDL FOR THE ACHILLES_ANALYSIS TABLE | ||
|
||
IF OBJECT_ID('@resultsDatabaseSchema.achilles_performance', 'U') IS NOT NULL | ||
DROP TABLE @resultsDatabaseSchema.achilles_performance; | ||
|
||
CREATE TABLE @resultsDatabaseSchema.achilles_performance ( | ||
analysis_id INTEGER, | ||
elapsed_seconds NUMERIC, | ||
start_time NUMERIC, | ||
end_time NUMERIC | ||
); |
6 changes: 4 additions & 2 deletions
6
inst/sql/sql_server/export/performance/sqlAchillesPerformance.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
select aa.analysis_id, aa.analysis_name, aa.category, stratum_1 elapsed_seconds | ||
select ap.analysis_id, aa.analysis_name, aa.category, ap.elapsed_seconds elapsed_seconds | ||
from @results_database_schema.ACHILLES_ANALYSIS aa | ||
join @results_database_schema.ACHILLES_RESULTS ar on aa.analysis_id + 2000000 = ar.analysis_id | ||
join @results_database_schema.ACHILLES_PERFORMANCE ap on ap.analysis_id = aa.analysis_id | ||
union | ||
select aa.analysis_id, aa.analysis_name, aa.category, stratum_1 elapsed_seconds | ||
select ap.analysis_id, aa.analysis_name, aa.category, ap.elapsed_seconds elapsed_seconds | ||
from @results_database_schema.ACHILLES_ANALYSIS aa | ||
join @results_database_schema.ACHILLES_RESULTS_DIST ar on aa.analysis_id + 2000000 = ar.analysis_id | ||
join @results_database_schema.ACHILLES_PERFORMANCE ap on ap.analysis_id = aa.analysis_id |