-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Weno improve design, and pharmacy import speed #7204
Conversation
- Improve pharmacy import by using transactional queries. From 4 minutes to 40 seconds. - improve validation and error reporting. - some code cleanup for warnings and in general - fix frame screen output to use the current theme so user always see content.
@@ -1,6 +1,6 @@ | |||
<?php | |||
|
|||
/* | |||
/** |
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.
😄
sqlStatementNoLog('COMMIT'); | ||
sqlStatementNoLog('SET autocommit=1'); |
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 wonder if I should be concerned with default settings for PHP and engine resources with approx 100, 000 inserts?
Perhaps safer to batch maybe every 10,000 or so!
That's it for this go around. Thanks SW for warning fix |
} | ||
fclose($records); | ||
sqlStatementNoLog('COMMIT'); | ||
sqlStatementNoLog('SET autocommit=1'); |
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.
Doesn't the following need to be placed above:
sqlStatementNoLog('SET autocommit=0');
sqlStatementNoLog('START TRANSACTION');
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.
Nice catch @bradymiller and thank you!
* Weno fixes and updates - Improve pharmacy import by using transactional queries. From 4 minutes to 40 seconds. - improve validation and error reporting. - some code cleanup for warnings and in general - fix frame screen output to use the current theme so user always see content. * - fix block style how nitpicking is this! * - fix all header blocks. * - no clue * php warning * styles * - I was running ci on wrong directory! tsktsk * - don't log thounsands of inserts --------- Co-authored-by: stephen waite <stephen.waite@cmsvt.com> (cherry picked from commit e77ac66)
Fixes #