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

Add index on severity, finish_time to speed up welcome page display #250

Merged
merged 1 commit into from
Jun 7, 2017

Conversation

ashangit
Copy link
Contributor

@ashangit ashangit commented Jun 2, 2017

Add an index on yarn_app_result table so the dashboard is display faster.

On our local deployment of dr-elephant with 2 millions of rows in this table(using mariadb) the below request was taking more than 30s:
select count(*) from yarn_app_result t0 where t0.finish_time > 1496070064837 and t0.severity = 4

With this index it now takes less than 1s.

Change-Id: I2026700927598c58c9bd42ffefef36916b53fc62
@akshayrai akshayrai merged commit f77886a into linkedin:master Jun 7, 2017
@akshayrai
Copy link
Contributor

akshayrai commented Jun 7, 2017

Merged. Thanks @ashangit

skakker pushed a commit to skakker/dr-elephant that referenced this pull request Dec 14, 2017
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.

2 participants