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

Timeout for custom attributes #31

Closed
ffMathy opened this issue Jan 11, 2024 · 1 comment · Fixed by #32
Closed

Timeout for custom attributes #31

ffMathy opened this issue Jan 11, 2024 · 1 comment · Fixed by #32

Comments

@ffMathy
Copy link
Contributor

ffMathy commented Jan 11, 2024

When I introduced the PR to add custom attributes, it does so using the following query:

select default, label, values, key, project_id, entity_type, is_hierarchical, object_type.name from CustomAttributeConfiguration order by sort

Apparently, when running towards our production or staging cluster, this query is too heavy, or takes too long time, resulting in a timeout.

Is there anything about this that should be expensive? I feel like fetching maybe roughly 200 custom attributes should be relatively simple.

@gismya
Copy link
Contributor

gismya commented Jan 12, 2024

The issue is fetching values, which searches for all the uses of the custom attribute in all the tasks. It's never actually used either, so should definitely be removed.

@gismya gismya linked a pull request Jan 13, 2024 that will close this issue
4 tasks
@gismya gismya closed this as completed Jan 13, 2024
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.

2 participants