-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
DB Migration chokes deployment #4924
Comments
My impression is that joining Users and Node is heavy... |
ahhhhhhh i should've caught that. Sorry! Should we refactor that and try
running again?
…On Wed, Mar 6, 2019 at 1:57 AM Sebastian Silva ***@***.***> wrote:
My impression is that joining Users and Node is heavy...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4924 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ8I9CauUA61xzSjrg8oS3vNh1zpoks5vT2aygaJpZM4bgL4r>
.
|
What exactly we want to do here? |
I think we need to add additional conditions to the > User.joins(:node).where('node.status = ?', 1).count
=> 7278
> User.joins(:comments).count
=> 15201 @icarito do you think even 7k records would be too many and could be causing this? |
Testing the above on live db console to benchmark... |
I wonder if it's just taking a really long time to go through and make all the tags, but that potentially it's not actually hanging but just taking a really long time to iterate through 7k records and do this for each one? |
OK, compare:
Gah, ok well that helps a bit... |
Attempted fix here: 1737876 |
Deploying this now... hoping! |
Done! It worked! |
This migration appears stuck in production deployment process:
The text was updated successfully, but these errors were encountered: