Add data in bulk using JSON
The idea is to allow the client to insert data in bulk by specifying a json string that should be inserted into a record.
NOTE: This needs to be done as an atomic operation on the server side (i.e. verifyAndSwap)!
- insert(string json, long record)
- Questions
- What if i the json document has a key/value mapping that already exists in the record? Should this fail? Or should I clear first and overwrite?
- What about keys that map to JSON objects? Should I create a new record for those objects and link to it?
- Questions