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

db.Range() is too slow #276

Open
nicewook opened this issue Jul 15, 2020 · 0 comments
Open

db.Range() is too slow #276

nicewook opened this issue Jul 15, 2020 · 0 comments

Comments

@nicewook
Copy link

I stored 1,000,000 logs to bolt db using storm.
then I tried to use db.Range for time.Time field (using index)

  1. it is very slow. around 20-40 seconds for Limit(10000)
  2. if the range is not fulfill 10000 records, it seems to search the whole data.

Question. is it normal behavior? or I can improve in some way. I think it is because of db.Range not using index

I am not sure here is the right place to ask. if not, sorry about it

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