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

Fix wrong aggregation query in /monitors #63

Merged
merged 2 commits into from
Apr 12, 2018

Conversation

eagletmt
Copy link
Member

Previous query contained columns which isn't group-by target nor
aggregators. Although MySQL accepts such query, it seems to do harm to
performance.

@cookpad/dev-infra please review

Previous query contained columns which isn't group-by target nor
aggregators. Although MySQL accepts such query, it seems to do harm to
performance.
}
jobs[job_id] = job
jobs[job[:job_id]] = job
Copy link

Choose a reason for hiding this comment

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

nit: I prefer introducing job_id local var to avoid nesting the [] access.

@eagletmt eagletmt merged commit 8002f92 into cookpad:master Apr 12, 2018
@eagletmt eagletmt deleted the wrong-query branch April 12, 2018 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants