Le dim. 9 juin 2019 à 20:14, John Cowan <xxxxxx@ccil.org> a écrit :


On Sat, Jun 8, 2019 at 4:41 PM Amirouche Boubekki <xxxxxx@gmail.com> wrote:

Where did you see that the end of FDB key space whas #xFF a certain number of times? I only know that everything after #xFF is for internal use.

Nowhere, but it's only logic.  The keys are compared lexicographically, and if two keys are the same up to the end of the shorter one, the longer one is considered larger.  Therefore, the largest possible key contains all #xFF bytes and is as long as a key can be, which in FoudationDB is 10,000 bytes.

That limitations of 10,000 bytes depends on the underlying storage backend (see https://www.youtube.com/watch?v=nlus1Z7TVTI)

The official end of the FDB key space is #xFF.

> I'm thinking of use cases like the index is a timestamp and you have read up to a certain point
> and want everything else. But of course you can use the current timestamp as a terminus
> in that case.

If we don't find a good use case for okvs-maximum-key I am willing to remove it from the specification.