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

Fixes #RHIROS-1347 - Dynamically create table partitions to optimize … #127

Merged
merged 10 commits into from
Oct 4, 2023

Conversation

patilsuraj767
Copy link
Collaborator

…DB performance

Copy link
Contributor

@saltgen saltgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patilsuraj767 IIUC, we would need to reset stage db before merging this PR, cause these migrations cannot be run on existing tables?

internal/model/metrics.go Outdated Show resolved Hide resolved
internal/model/workload_metrics.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@kgaikwad kgaikwad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added two small nitpicks!

internal/model/historical_recommendation_set.go Outdated Show resolved Hide resolved
internal/model/workload_metrics.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@kgaikwad kgaikwad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patilsuraj767 - you need to replace methods' create_range_patition, create_monthly_patitions calls with create_range_partition & create_monthly_partitions

migrations/000005_partition_functions.up.sql Outdated Show resolved Hide resolved
migrations/000005_partition_functions.up.sql Outdated Show resolved Hide resolved
@patilsuraj767
Copy link
Collaborator Author

/retest

Copy link
Collaborator

@kgaikwad kgaikwad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested. Codewise look good to me.

@patilsuraj767 patilsuraj767 merged commit 480486f into RedHatInsights:main Oct 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants