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

support for Query.ReturnSizes #75

Closed
MichaelMure opened this issue Nov 22, 2019 · 0 comments · Fixed by #76 or #78
Closed

support for Query.ReturnSizes #75

MichaelMure opened this issue Nov 22, 2019 · 0 comments · Fixed by #76 or #78

Comments

@MichaelMure
Copy link
Contributor

In ipfs/go-datastore#134 is added a new request field in queries: Query.ReturnSizes.

To honor this field, datastore implementations can either:

  • return the size of the entry in Entry.Size if Query.ReturnSizes is set, or -1 otherwise
  • consider that returning the size doesn't imply a performance cost and always return the size in Entry.Size
MichaelMure added a commit to MichaelMure/go-ds-badger that referenced this issue Nov 27, 2019
Stebalien pushed a commit that referenced this issue Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant