Skip to content

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