-
Notifications
You must be signed in to change notification settings - Fork 649
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 get_trade_history
API performance
#458
Comments
yea, checked, really sucks. i think a binary search against the date like the one done here : https://github.com/bitshares/bitshares-core/pull/405/files?diff=unified can improve the call speed in all situations. let me know what do you think. |
lets see if we can pass this first: #455 before sending code to the same call. |
Just noticed that bitshares-ui is not using this API. I'm not sure what application is using it. Since the pagination was largely broken (see #448), it's fair to guess that no application is relying on it. The I propose to change the behavior of this API to silently return an empty set if need to skip too many rows (E.G. 100) due to a too small Thoughts? |
Rename it to get_trade_history_deprecated and remove it after the next release. If anyone complains about the renaming we know they have been using it. |
Still need to use it to load the first page, so I don't want to deprecate it completely. See #448 . |
Uh...
Is is still in use or not? |
When I was saying "fair to guess that no application is relying on it", "it" means the pagination. Rather than deprecating it, I would add an index ( |
Got it. |
to improve performance, fix bitshares#458
I think this can be closed as well. Fixed in #478. |
The performance is terrible if
start
is too small.The text was updated successfully, but these errors were encountered: