fix(HD Search): adds getAllHds
and improves the performance of the …
#309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…HD search with
searchForHd
withDetails
to the methodsearchForHd
to switch between a basic and a full data view. The basic view contains onlyname
,rkiCode
andepsName
.alsoNotConnectedHds
to the methodsearchForHd
to enable if the hds without anepsName
(these are not connected to EPS) include into the response list or not.getAllHds
to get a list of all infos about health departments from RKI data. This method has also the parameterwithDetails
andalsoNotConnectedHds
.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