ipfs / ipfs/go-ds-redis

support for Query.ReturnSizes

Open
#5 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
11
Forks
7
PR merge metrics
No merged PRs in 30d

Description

In https://github.com/ipfs/go-datastore/pull/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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.