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 in iteration range end value queries #1245

Closed
wants to merge 2 commits into from

Conversation

wangzihuacool
Copy link
Contributor

Description

This PR forces the unique-key index to be used in iteration range end value queries when copying data to the _gho table.
Force the unique-key index to avoid inappropriate optimizer selection, as discussed in #1242 .

@CommanderRoot
Copy link

Probably nitpicking but the spacing / formatting is off on the SQL queries, at least on Github. The other lines use tabs + spaces and you only used spaces.

@wangzihuacool
Copy link
Contributor Author

Probably nitpicking but the spacing / formatting is off on the SQL queries, at least on Github. The other lines use tabs + spaces and you only used spaces.

thank you for your advise, I'll modify it to keep consistent.

@wangzihuacool
Copy link
Contributor Author

@timvaillancourt would you please take the time to reivew it?

@timvaillancourt
Copy link
Collaborator

@wangzihuacool I believe this is resolved by a similar PR that is on master: #1237

Please test and re-open if this is not the case. Thanks!

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.

force index in Iteration Range End Value queries to fix execution plans
3 participants