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

fix(HD Search): adds getAllHds and improves the performance of the … #309

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

jekutzsche
Copy link
Member

…HD search with searchForHd

  • Adds the boolean param withDetails to the method searchForHd to switch between a basic and a full data view. The basic view contains only name, rkiCode and epsName.
  • Adds the boolean param alsoNotConnectedHds to the method searchForHd to enable if the hds without an epsName (these are not connected to EPS) include into the response list or not.
  • Adds the method getAllHds to get a list of all infos about health departments from RKI data. This method has also the parameter withDetails and alsoNotConnectedHds.

When reading data from the RKI XML with XML Beam, each read costs time and the less data that needs to be read/fetched, the faster the search and processing goes. Therefore, the processing can be accelerated very significantly with the two parameters.

**It should always be loaded as little data as possible and best both parameters should be set to FALSE.

Further optimizations were made in the code to load data from the XML only once and only when it is really needed.

Refs iris-connect/iris-client#678

…HD search with `searchForHd`

- Adds the boolean param `withDetails` to the method `searchForHd` to switch between a basic and a full data view. The basic view contains only `name`, `rkiCode` and `epsName`.
- Adds the boolean param `alsoNotConnectedHds` to the method `searchForHd` to enable if the hds without an `epsName` (these are not connected to EPS) include into the response list or not.
- Adds the method `getAllHds` to get a list of all infos about health departments from RKI data. This method has also the parameter `withDetails` and `alsoNotConnectedHds`.

When reading data from the RKI XML with XML Beam, each read costs time and the less data that needs to be read/fetched, the faster the search and processing goes. Therefore, the processing can be accelerated very significantly with the two parameters.

**It should always be loaded as little data as possible and best both parameters should be set to FALSE.

Further optimizations were made in the code to load data from the XML only once and only when it is really needed.

Refs iris-connect/iris-client#678
@jekutzsche jekutzsche merged commit 40867f2 into main Mar 21, 2022
@jekutzsche jekutzsche deleted the fix/improve_and_extend_hd_search branch March 21, 2022 14:44
@jekutzsche jekutzsche changed the title fix(HD Search): adds getAllHds and improves the pervormance of the … fix(HD Search): adds getAllHds and improves the performance of the … Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants