Skip to content
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

feat: Weno improve design, and pharmacy import speed #7204

Merged
merged 9 commits into from
Feb 3, 2024

Conversation

sjpadgett
Copy link
Member

  • 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.

Fixes #

- 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

/*
/**
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

Comment on lines +197 to +198
sqlStatementNoLog('COMMIT');
sqlStatementNoLog('SET autocommit=1');
Copy link
Member Author

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!

@sjpadgett
Copy link
Member Author

That's it for this go around. Thanks SW for warning fix

@stephenwaite
Copy link
Sponsor Member

weno bueno :)
arlo-hello

@sjpadgett sjpadgett merged commit e77ac66 into openemr:master Feb 3, 2024
24 checks passed
@sjpadgett sjpadgett deleted the weno_changes branch February 3, 2024 02:50
}
fclose($records);
sqlStatementNoLog('COMMIT');
sqlStatementNoLog('SET autocommit=1');
Copy link
Sponsor Member

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');

Copy link
Member Author

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!

sjpadgett added a commit to sjpadgett/openemr that referenced this pull request Feb 22, 2024
* 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 <[email protected]>
(cherry picked from commit e77ac66)
@adunsulag adunsulag added this to the 7.0.2.1 milestone Apr 23, 2024
@adunsulag adunsulag changed the title Weno fixes and updates feat: Weno improve design, and pharmacy import speed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants