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

[功能改进]: 多租户插件的查询使用索引的优化 #6687

Open
3 tasks done
BrightMi opened this issue Jan 26, 2025 · 0 comments
Open
3 tasks done

[功能改进]: 多租户插件的查询使用索引的优化 #6687

BrightMi opened this issue Jan 26, 2025 · 0 comments

Comments

@BrightMi
Copy link

确认

  • 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题

功能改进

在多租户的数据中,创建索引会将tenant_id作为索引的字段的最左面
但是在多租户插件中,拼接tenant_id=?的查询条件会放到最后,这样会导致无法用到索引,可以在多租户插件中增加配置项,允许配置拼接到最前面还是最后面。

参考资料

No response

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

No branches or pull requests

1 participant