We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在多租户的数据中,创建索引会将tenant_id作为索引的字段的最左面 但是在多租户插件中,拼接tenant_id=?的查询条件会放到最后,这样会导致无法用到索引,可以在多租户插件中增加配置项,允许配置拼接到最前面还是最后面。
No response
The text was updated successfully, but these errors were encountered:
feat:多租户插件的查询使用索引的优化baomidou#6687
70909ae
733b9e1
No branches or pull requests
确认
功能改进
在多租户的数据中,创建索引会将tenant_id作为索引的字段的最左面
但是在多租户插件中,拼接tenant_id=?的查询条件会放到最后,这样会导致无法用到索引,可以在多租户插件中增加配置项,允许配置拼接到最前面还是最后面。
参考资料
No response
The text was updated successfully, but these errors were encountered: