-
Notifications
You must be signed in to change notification settings - Fork 156
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
Batch report calls in hash_redis_store #331
Conversation
updated_time: updated_time | ||
) | ||
end.to_json | ||
arguments_key = [@redis_namespace, SecureRandom.uuid].compact.join('.') |
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.
do these other steps need to be wrapped in if keys.any?
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.
Good question. I don't see the harm in it and it might save us unnecessary hits to redis. Good thing is we do have a test for it so think its currently functional.
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.
added one comment but looks good
@danmayer - to be clear, the cpu usage on redis still goes down about 20-25% compared to master for our benchmarks. I was comparing this iteration with the change_to_hash branch. |
Little bump up in cpu but much faster:
Before:
After:
Looks to be about 2X as fast according to our performance benchmark task.