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

Performance optimizations for ODM2 timeseries DAO get_variables requests #238

Merged
merged 5 commits into from
Aug 4, 2019

Conversation

emiliom
Copy link
Member

@emiliom emiliom commented Aug 4, 2019

Refactored SQLAlchemy queries in get_variables_from_results() to improve performance. Result is dramatic. Also other small tweaks, including documentation.

- Refactored SQLAlchemy queries in get_variables_from_results() to improve performance. Result is dramatic.
- Renamed get_match to get_odm2cv_match, for clarity
- Other cosmetic tweaks
Updated from deprecated odm2api.ODM2.models module path to odm2api.models path
@emiliom
Copy link
Member Author

emiliom commented Aug 4, 2019

Driven and tested by EnviroDIY ODM2 issues. Broadly related to #228 (that's an umbrella issue).

Missed it in tests for January, probably b/c I wasn't testing that function
Required for ODM2 timeseries DAO
@emiliom
Copy link
Member Author

emiliom commented Aug 4, 2019

Travis-CI: Getting error in test/test_wof_1_1.py::TestWOF with accessing CUAHSI ODM 1.1 CV. The service is failing:
http://his.cuahsi.org/odmcv_1_1/odmcv_1_1.asmx?WSDL

So, watermlcvs.json can't be created and the error 'Can't connect to CUAHSI Service, WaterML 1.1 controlled vocabularies are not updated' is returned

@emiliom
Copy link
Member Author

emiliom commented Aug 4, 2019

Also addresses #237

Merging. Will follow up on the CUAHSI CV problem separately (#239)

@emiliom emiliom merged commit 3382f4d into ODM2:master Aug 4, 2019
@emiliom emiliom deleted the perfoptimiz_20190119 branch May 19, 2024 05: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.

1 participant