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

perf: Disable loading of dimension values for preview query #1196

Merged
merged 4 commits into from
Sep 28, 2023

Conversation

bprusinowski
Copy link
Collaborator

Closes #1192.

To improve performance of fetching the dataset preview, this PR disables loading of dimension values along with it.

It means that we lose the feature to sort the preview by value positions, but for 10-observations preview that might not be necessary anyway.

At first I tried to add a new GQL fragment, DimensionMetadataWithoutValuesFragment, but ultimately I decided to introduce a new property to dataCubeByIri query – disableValuesLoad – to keep the same types, as we use DimensionMetadataFragment across the whole application, and the preview query is scoped to one components (dataset preview table).

@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2023 7:34am

…into perf/disable-loading-dimension-values-for-preview
…into perf/disable-loading-dimension-values-for-preview
@bprusinowski bprusinowski merged commit d445155 into main Sep 28, 2023
3 checks passed
@bprusinowski bprusinowski deleted the perf/disable-loading-dimension-values-for-preview branch September 28, 2023 07:32
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.

performance regression for preview
1 participant