-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: Update hierarchy query library #1223
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@bprusinowski unfortunately https://visualization-tool-am4klf8am-ixt1.vercel.app/create/new?cube=https://environment.ld.admin.ch/foen/nfi/nfi_C-90/cube/2023-2&dataSource=Prod fails to load with this changes... there might be something important missing yet |
@Rdataflow, this is related to the fact that serverless functions for apps deployed on Vercel can execute for max. 15s, while the request was supposed to take longer. This is related to a fact that by providing a list of properties to fetch along with hierarchy made it less performant, I've updated the description of the PR. |
9fcc4aa
to
a102008
Compare
@bprusinowski hmm this would be the contrary of the performance improvements to strive for... nb: @bprusinowski don't merge this PR yet... I'll tell you more |
for the records:
|
@Rdataflow query without language filters is much faster than 15s (takes around 0.5s) :)
|
@bprusinowski good to know, can you share your slow experience and the probable reason here to keep awareness: |
@bprusinowski can you rebase this PR to main? |
Hey @Rdataflow, the base is actually main. Did you mean to merge it to main? |
I just would like to see the latest commits from main branch included for the preview, thus only rebase on main trunk... |
…into chore/update-hierarchy-query-library
Ah I see, done 👍 |
@bprusinowski v2.1.1 is out now 🚀 let's give it a try |
@Rdataflow it looks that the performance is still not ideal when using language filters; when removed, it gets much better. Let me know if we should simply switch to querying all languages and extracting them on our own 👀 Generated query (not visible in deployment preview due to >15s execution time)
|
Closed in favor of #1364. |
This PR updates the cube-hierarchy-query library to v2.2.0.
It also updates the way of how we fetch dimension values metadata for hierarchies by using new syntax to directly specify the properties we need to fetch along the hierarchy. However, this seem to make it significantly less performant that our current approach, which means we should probably only update library, but keep the old way of fetching things.
New auto-generated query used to fetch hierarchies and metadata (NFI dataset) – approx. 15s
Old auto-generated query to fetch hierarchies ((NFI dataset) ) – approx. 2s