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

Improve fetch performance of DAP4 #2765

Merged
merged 7 commits into from
Nov 16, 2023
Merged

Conversation

DennisHeimbigner
Copy link
Collaborator

@DennisHeimbigner DennisHeimbigner commented Oct 9, 2023

Prior to this PR, DAP4 always fetched the whole (constrained) dataset This PR changes the query processing so

  1. It reads data on a per-variable request (equivalent to calling nc_get_var()).
  2. It tracks a response for every query.
  3. The responses are cached so that the data for a variable is only requested once.

Most of the changes reflect having to do per-variable requests. In any case, doing all this significantly reduces the amount of data transmitted and hence speeds up DAP4 requests.

Prior to this PR, DAP4 always fetched the whole (constrained) dataset
This PR changes the query processing so
1. It reads data on a per-variable request (equivalent to calling nc_get_var()).
2. It tracks a response for every query.

Most of the changes reflect having to do per-variable requests.
In any case, doing all this significantly reduces the amount of data transmitted and hence speeds up DAP4 requests.
@WardF WardF merged commit 0d09cf8 into Unidata:main Nov 16, 2023
9 checks passed
@DennisHeimbigner DennisHeimbigner deleted the dap4ce.dmh branch November 21, 2023 01:22
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