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

索引查询单个结果速度确实快,但是有多个结果时时间和没索引一样? #809

Open
chenhan1995 opened this issue Sep 19, 2022 · 3 comments

Comments

@chenhan1995
Copy link

我业务中查询的是当天的数据例如LitePal.where(
"updateDay=?",
“2022-09-19”
).find(SectorData.Sector::class.java),查询结果会有多条,发现使用findFirst查询速度极快,但是使用.find()查询所有符合的数据是没有索引效果的

@chenhan1995
Copy link
Author

反复开启关闭索引确认过了

@chenhan1995
Copy link
Author

只能支持单个结果的索引查询吗

@chenhan1995
Copy link
Author

找到问题了,有相同情况的可以看看这个,前导列问题http://t.zoukankan.com/wjw334-p-4414365.html

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