vanadium / issues

Vanadium issue tracker
1 stars 1 forks source link

Syncbase: constructing key from data #926

Open ivanpi-mtv opened 8 years ago

ivanpi-mtv commented 8 years ago

Row keys commonly contain UUIDs, timestamps, and other data that may be duplicated in the value. To ensure consistency, utilities for building keys out of values would be helpful.

One possibility is using VDL annotations to specify key components, as well as UUID and timestamp fields to be populated. They could be used purely by the client-side utility library, or make key formats part of the schema and have Syncbase construct keys and enforce their format. As an optimization, Syncbase could also remove fields duplicated in the key from the persisted value, parsing them back when reading the value.

asadovsky commented 8 years ago

Assigning to myself, though I'm not sure we'll end up doing anything here. (If anything, perhaps we'd switch to a "document store" model, where primary keys are included in the value and converted into keys on the server side.)