-
Notifications
You must be signed in to change notification settings - Fork 0
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 speed of couchbase station queries #755
Comments
App currently testable, but must be done before this is in production. Defer until after scorecard in a place to move away from it for a while. |
Adding myself and making it a high priority since this needs to be completed before we truly dive into the 3-D component |
I am starting with trying to understand the TimeSeries query. If would help greatly if one of you could explain in "plain english' or even better in pseudo-code what this query is trying to do. |
Is it OK to create some indexes on adb-cb1 ? . Just want to play with CouchBase TimeSeries query variations, but don't want to step on anyone's toes ... |
Certainly, but it is easy for them to get out of hand, so please keep track of any changes or additions. I maintain the indexes in source code in the VxIngest repo here... adb-cb1 indexes The standalone server adb-cb1 is the 0-replicas script but for indexes that we are controlling I always add them to the 2-replicas script as well. For experimenting just note them and remove them if they don't help. Please keep in mind that we are also ingesting to this machine and the ingest scripts do rely on the indexing as well. |
Randy, I am seeing the mdatatest bucket, thanks. I will experiment with that. Planning to focus on time-series query for now. Let me know if there is a way to create another bucket where data is a map (on name key) instead of an array. Not sure if this will help query speed, but worth exploring as we discussed. |
We now have a three prong approach to this problem. (Jeff and Gopa please correct any mis-statements about the approaches)
|
I did create the mdatatest bucket but I haven't yet figured out how to transform the data section into a map.
|
Discussion on this topic is available at https://github.com/NOAA-GSL/VxIngest/discussions/165 |
I have the following query returning in 4.6s, looks like returning similar results to original query, but definitely needs some due diligence to be sure. note use of (non-normalized index field idx0) |
SELECT m.mfve AS avtime, |
mdatatest0 uses Couchbase 7.x Scope and Collection features. I am using default scope with 2 collections, obs and model |
All plot type queries Molly provided have been converted over to the latest optimized Couchbase queries. I have compared the results against previous CB queries used in the MATS code, and they match. I have the list of queries (SQL and CB) for the various plot types in the following document: https://docs.google.com/document/d/1ZZ6K9Yjf0wZ-XaK0McJlM08ew2tqnaIdNwEJ9dwHPak/edit?usp=sharing This issue can be closed! |
Right now, the station queries in our cb-ceiling app are working well enough to validate the app and serve as a proof of concept, but they should be made faster before the app is released for production. Right now they are either on par with mysql or slightly slower, which won't be adequate for heavy process-oriented verification use.
The text was updated successfully, but these errors were encountered: