Le sam. 8 juin 2019 à 20:47, John Cowan <xxxxxx@ccil.org> a écrit :


On Sat, Jun 8, 2019 at 6:20 AM Amirouche Boubekki <xxxxxx@gmail.com> wrote:
  
2.  Likewise for 'read-only?' and 'create?'.

I am not sure about this one. read-only? is not necessarily supported by all databases. Making it mandatory will force the implementation to emulate it. So far, FDB doesn't support read-only?

Read-only is trivial to support in the exported procedures: just keep track of it and have all mutation operations check it before doing anything else.

You are correct. I will make it mandatory as another parameter/
 
 
create? is also subject to this. FDB doesn't have such a concept.

So FoundationDB does not let you create a database using the API?

No.
 
  
It seems to me, it is very unlikely that someone will scan the whole database for production purpose. The only usecase I can think of is for debugging, in that case
there is okvs-debug. I think specifying the maximum key is not a good idea. Let me know what you think.

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.  I'm just thinking of a sequential file style of use, where you want to read to the end of file, whatever that may be.

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.