-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakup sql 4714 #85
Breakup sql 4714 #85
Conversation
…o improve performance.
Upstream changes which remove mapping related files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not inclined to put off adding a file header.
The other comments are mostly suggestions.
-------------------------------------------------------------------------------- | ||
|
||
BEGIN | ||
PMN_DROPSQL('DROP TABLE enrollment'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not PMN_DROPSQL('enrollment')
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is an update we had talked about and that I would like to make, but time constraints are pushing me to wrap this up for now. Perhaps we can make a note of it and revisit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
@@ -0,0 +1,1000 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no file header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, I will add a header
Oracle/PCORNetInit.sql
Outdated
|
||
|
||
-------------------------------------------------------------------------------- | ||
-- I2P REPORT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I saw something in the SCILHS issue tracker that I2P REPORT is now dead code. I'd prefer not to maintain it. Move it to its own file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This issue? If it is dead code, I'd just assume remove it all together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing it works for me.
@@ -896,7 +158,9 @@ union --6 -- NS, NR, nH | |||
begin | |||
pcornet_popcodelist; | |||
|
|||
PMN_DROPSQL('drop index demographic_patid'); | |||
PMN_DROPSQL('drop index demographic_idx'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed, I doubt consolidating indexes is a good idea.
@@ -924,12 +188,26 @@ ORA-00904: "FACILITY_ID": invalid identifier | |||
ORA-00904: "LOCATION_ZIP": invalid identifier | |||
*/ | |||
create or replace procedure PCORNetEncounter as | |||
|
|||
sqltext varchar2(4000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay! no more sqltext
in procedure PCORNetEncounter
@@ -1495,137 +719,70 @@ end PCORNetHarvest; | |||
|
|||
|
|||
|
|||
/* TODO: When compiling PCORNetPrescribing, I got Error(93,15): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
happy to see cleaning up these TODOs
Oracle/PCORNetLoader_ora.sql
Outdated
END; | ||
create or replace PROCEDURE PCORNetLoader(start_with VARCHAR2) AS | ||
begin | ||
if start_with in ('PCORNetDemographic') then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest: add a comment to acknowledge that this pile of if statements is ugly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, this could use some documentation.
Oracle/PCORNetLoader_ora.sql
Outdated
PCORNetEncounter; | ||
end if; | ||
|
||
if start_with in ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps map start_with
to a number called, let's say start_with_step
and use start_with_step <= 3
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this guy is magic string city. Your suggestion could clean this procedure up a bit w/ the right documentation. I'm a little hesitant to do so because the name wouldn't get logged in the Jenkins console, but I know if that's a strong reason not to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The map-to-number idea was for inside this procedure; the jenkins logs wouldn't change, if I understand things correctly. But the destabilization risk is probably not worthwhile at this point.
This update to the code does the following:
PCORNetLoader.sql
into a new filePCORNetInit.sql
so that preparing the transform space is separated from running the transform.