Open ivanpi-mtv opened 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.)
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.