Skip to content

Solve slowness in otterize clientintents export by namespaces caused by slow query for list of namespaces, by using minimal GraphQL API query for namespaces fields#178

Merged
amitlicht merged 7 commits intomainfrom
amitlicht/faster_namespaces_query
Apr 24, 2025
Merged

Solve slowness in otterize clientintents export by namespaces caused by slow query for list of namespaces, by using minimal GraphQL API query for namespaces fields#178
amitlicht merged 7 commits intomainfrom
amitlicht/faster_namespaces_query

Conversation

@amitlicht
Copy link
Copy Markdown
Contributor

@amitlicht amitlicht commented Apr 23, 2025

Description

This PR slows delays in otterize clientintents export --namespaces <namespacename>, caused due to slow querying of the list of namespaces which is needed to resolve namespace name to ID.
This is resolved by using a minimalized gql-based query for namespaces resolving purpose, where only the namespace names & IDs and cluster names & IDs are queried (rather than full namespace & cluster info).

References

  • See the Otterize API docs for references re our REST APIs & GraphQL APIs

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR and in github.com/otterize/docs

@amitlicht amitlicht force-pushed the amitlicht/faster_namespaces_query branch 3 times, most recently from 6bf5564 to 9c1a0ad Compare April 23, 2025 21:59
@amitlicht amitlicht force-pushed the amitlicht/faster_namespaces_query branch from 9c1a0ad to 4061fd8 Compare April 23, 2025 22:03
@amitlicht amitlicht force-pushed the amitlicht/faster_namespaces_query branch from 592c30f to 3a073fe Compare April 24, 2025 08:54
@amitlicht amitlicht changed the title WIP solve slowness in namespaces query causing otterize clientintents… Solve slowness in otterize-clientintents export by namespaces caused by slow query for list of namespaces, by using minimal GraphQL API query for namespaces fields Apr 24, 2025
@amitlicht amitlicht requested a review from omris94 April 24, 2025 11:32
@amitlicht amitlicht marked this pull request as ready for review April 24, 2025 11:32
@amitlicht amitlicht changed the title Solve slowness in otterize-clientintents export by namespaces caused by slow query for list of namespaces, by using minimal GraphQL API query for namespaces fields Solve slowness in otterize clientintents export by namespaces caused by slow query for list of namespaces, by using minimal GraphQL API query for namespaces fields Apr 24, 2025
@amitlicht amitlicht merged commit f4848b3 into main Apr 24, 2025
7 checks passed
@amitlicht amitlicht deleted the amitlicht/faster_namespaces_query branch April 24, 2025 12:39
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants