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

Makes bin/oneoff/migrate_old_when_run_blocks more performant. #12830

Merged
merged 1 commit into from Jan 25, 2017

Conversation

ashercodeorg
Copy link
Contributor

Also adds better logging to the console.

where(id: slice_ids).
where("data LIKE '%flappy_whenRunButtonClick%'").
each do |level_source|
# Migrate the data from the old block to the new block.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given the relative infrequency of observed updates, there doesn't seem to be any benefit in batching the updates in a transaction, the bottleneck is the data LIKE '%flappy_whenRunButtonClick%' search.

@ashercodeorg ashercodeorg merged commit 7ea78fb into staging Jan 25, 2017
@ashercodeorg ashercodeorg deleted the makeWhenRunPerformant branch January 25, 2017 19:55
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.

None yet

2 participants