-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(github): Don't store updatedAt
field in GraphQL cache record
#21024
feat(github): Don't store updatedAt
field in GraphQL cache record
#21024
Conversation
What is the expected outcome? When I do a dry run on this repo two times in a row I still see a lot of package cache sets:
I assume those 24 are for github tags/releases and that they're unnecessary. |
My expectation is that when I run on a repo two times in a row that there are no package cache sets on the second run. |
That's because we're still saving new |
Why do we need to set the updatedAt? Let's say I asked you not to set it every run. What would we lose? |
Hah, turns out it's the legacy field from the time when we tried to do zero GraphQL queries per run. So the answer is we only lose the potential possibility of doing zero queries, but seems like we don't want it anyway. |
updatedAt
field in GraphQL cache record
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.
🤷♂️ don't we have a equal comparison lib already?
🤦 We do |
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.
ok, so please use the existing 😁
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.
DEBUG: Package cache statistics (repository=renovatebot/renovate)
"get": {"count": 222, "avgMs": 275, "medianMs": 186, "maxMs": 1669},
"set": {"count": 0}
🎉 This PR is included in version 35.11.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
SeparateupdatedAt
and cache data in order to optimize cache I/OupdatedAt
fieldContext
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: