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

Refactor dsmetadata queries to fetch workload and container info, enhancing the performance #1345

Open
shreyabiradar07 opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@shreyabiradar07
Copy link
Contributor

Describe the feature

Remove redundant WORKLOAD_INFO_QUERY and instead use CONTAINER_INFO_QUERY as the common query to fetch both workload and container metadata.

Examples or references

Add any examples or references to understand it better

Suggest a solution

Remove redundant WORKLOAD_INFO_QUERY and instead use CONTAINER_INFO_QUERY and refactor import metadata logic to accommodate the query updates.

Additional Context

As we have CONTAINER_INFO_QUERY which has both container and workload details it is redundant to run WORKLOAD_INFO_QUERY and also we can avoid running an extra for loop for workload -

for (DataSourceWorkload dataSourceWorkload : dataSourceNamespace.getDataSourceWorkloadHashMap().values()) {

This can help in reducing the time taken to get the datasource details and also avoids redundancy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant