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] DatasetDAO findAll query fail if there are too much facet #2860

Closed
sophiely opened this issue Jul 25, 2024 · 0 comments · Fixed by #2859
Closed

[PERF] DatasetDAO findAll query fail if there are too much facet #2860

sophiely opened this issue Jul 25, 2024 · 0 comments · Fixed by #2859

Comments

@sophiely
Copy link
Contributor

When namespace has too much dataset and dataset facets we can face this error:

{"code":500,"message":"org.postgresql.util.PSQLException: ERROR: total size of jsonb array elements exceeds the maximum of 268435455 bytes [statement:"/* DatasetDao.findAll / SELECT d., dv.fields, dv.lifecycle_state, sv.schema_location, t.tags, facets\nFROM datasets_view d\nLEFT JOIN dataset_versions dv ON d.current_version_uuid = dv.uuid\nLEFT JOIN stream_versions AS sv ON sv.dataset_version_uuid = dv.uuid\nLEFT JOIN ...

Here is the current query:

image

If we zoom in the column facet we can see these values:

[
{
"schema": {...}
},
{
"dataSource": {...},
{
"dataSource": {...},
{
"schema": {...}
},
{
"dataSource": {...},
{
"schema": {...}
},
{
"schema": {...}
},
{
"dataSource": {...}
}
]

For each version uuid we have the same facet type replicated.

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 a pull request may close this issue.

1 participant