Repository navigation
added indexHint - #8401
added indexHint#8401felipefdl wants to merge 2 commits into
Conversation
|
Please add some tests for this feature |
|
I think we should not add this feature. Reasons
|
|
@sushantdhiman We have 19k of tables, almost 3 billions of records. The mysql system cannot choose right index for my queries, we have a lot combinations of index, dependents of the query is. So basically you saying the sequelize is not able to handle big data systems. So, I will keeping the for of sequelize with these modifications and I should keep updating the lib always when you guys release a new version, I cannot understand why sequelize doesn't support the parameters so useful for big data softwares. |
|
In past I have rejected this feature because there was little to no demand, but it seems now this feature is desired by some users. There are three PRs related to this change #9378, #9409 & #8401 I suggest authors of these PRs or anyone else who want this feature to suggest an API #9421 and propose a single PR after API is finalized. Looks like MySQL / MSSQL / SQLite support this feature. PR with support and tests for all these dialects will be appreciated |
Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Adding new feature, indexHint, where we can select which index we wish use.
The documentation is from: https://dev.mysql.com/doc/refman/5.7/en/index-hints.html
Examples: