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

hl7-reader very slow startup #63

Open
jeremyestein opened this issue Oct 3, 2024 · 0 comments
Open

hl7-reader very slow startup #63

jeremyestein opened this issue Oct 3, 2024 · 0 comments

Comments

@jeremyestein
Copy link
Collaborator

jeremyestein commented Oct 3, 2024

The query in method getFirstMessageUnidFromDate is extremely slow (30+ minutes), probably due to persistdatetime in the IDS not having an index. This means that emap startup is limited by this step. This is particularly disruptive when running validation, which is often part of a development cycle.

We could request that an index be added, but perhaps also we can see whether the query can be improved?

If getting an index is going to be too difficult, assuming persistdatetime rank-correlates perfectly with unid (the PK), you could do a binary search in the client code to do the same query.

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

No branches or pull requests

1 participant