-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Change frequency
column in cloudquery_table_frequency
to milliseconds
#1428
Conversation
3cbcb9c
to
a44be64
Compare
…lliseconds Using milliseconds allows for a higher degree of accuracy. For example, we can identify tables that are updated multiple times a day.
a44be64
to
89629db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me, I agree this is the simpler approach overall.
I hadn't had a chance to go through the rest of the catalogue (and grafana dashboards) and check if there are other jobs that would be affected by this change, but on the assumption that we've at least checked there's nothing critical that will break with these type changes, I think we could merge this and see.
I'll update the cloudquery paid rows dashboard to match the new form once this is merged and has run to populate the table.
table_name String @id | ||
frequency String? | ||
table_name String @id | ||
frequency BigInt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that this is no longer an optional field in the schema 👍
I think some of the Grafana alerts will break. However, we've been ignoring these alarms for a while, so this won't make a significant difference. |
I'll orchestrate this on PROD by:
This is because each ECS task performs an |
Confirming this is working as expected. On PROD we can see the Each task will need to run at least once before this table is completely accurate. Alternatively, we could seed the table with data ourselves. |
Note
These database changes have been deployed to CODE and therefore the database schema is only compatible with this branch. Before testing another branch on CODE, we'll need to apply another migration to revert the schema change. Or, rebase the feature branch on this one.
What does this change and why?
Updates the
cloudquery_table_frequency
table to store frequency as milliseconds. Using milliseconds allows for a higher degree of accuracy. For example, we can identify tables that are updated multiple times a day.To understand the daily rate, we can do:
How has it been verified?
I've deployed to CODE and seen the migration apply:
Using the above SQL, we can see the effective daily rate of each table: