-
Notifications
You must be signed in to change notification settings - Fork 65
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
Improve performance of Query method #40
Comments
@whyrusleeping I will be happy to look into this and determine where the bottleneck is. It may be as simple as increasing the buffer size. I will also try a direct iterator approach and see if that helps. |
Here are some performance numbers for doing a key-only query on the leveldb datastore: The buffer size is the channel buffer size, direct is the results from querying the level-db directly. And here are some results from the flatfs datastore: It seams that at least for key-only 128 in the optimal buffer size. |
@kevina thanks for these graphs, i think youre right, we should buffer the channels at 128 for now. And if we need more perf later, give the option for direct iteration. |
I updated the graph for flatfs queries. It seams there is enough overhead in the |
I pushed the (somewhat hackish) code to create the graphs on the |
In ipfs/kubo#2760 @whyrusleeping said in a line comment:
The text was updated successfully, but these errors were encountered: