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

Force index for task history requests by host and start/update times #2105

Merged
merged 4 commits into from
Jul 17, 2020

Conversation

fabatef
Copy link
Contributor

@fabatef fabatef commented Jun 11, 2020

Forces task history search queries to use the hostUpadtedAt index for requests that only specify host and startedAt/updatedAt fields. These queries currently timeout intermittently since the hostUpdatedAt index isn't consistently chosen by the optimizer.

@ssalinas
Copy link
Member

Mentioned this to @baconmania , but documenting here as well. If we are adding something non-postgres-compatible, we should make this into an abstract method instead. It can be implemented only in the mysql version and essentially a no-op on the postgres side

@ssalinas
Copy link
Member

@baconmania will let you review here

@ssalinas
Copy link
Member

@fabatef can we get the merge conflicts resolved here at some point. Realized this one never actually made it through to stable

@ssalinas
Copy link
Member

🚢

@ssalinas ssalinas merged commit efbe4c8 into master Jul 17, 2020
@ssalinas ssalinas deleted the force-index-hostUpdatedAt branch July 17, 2020 15:17
@ssalinas ssalinas added this to the 1.3.0 milestone Sep 24, 2020
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

2 participants