Lately, I've been delving into the world of records and I find myself pondering on the practical limitations when it comes to the size of a json structure. Is there a recommended maximum length? Can you store an entire chat history as an (anonymous) record with potentially hundreds of entries?
The json document structure might resemble something like this:
var record = client.record.getRecord('chat/5ak1g');
record.set({
2016.03.25.16:22:25: {
user: 'Ann',
message: 'Hey, whats up?'
}
2016.03.25.16:22:40: {
user: 'Sue',
message: 'Wanna get some sushi?'
}
2016.03.25.16:23:10: {
user: 'Ann',
message: 'cdn.example.com/sj48s2f4.jpg'
}
//more messages
});
Now, my question is: When dealing with a problem like this, is a record in terms of size the best solution or would it be more suitable to use lists/RPC?
I appreciate any insights you can share. Thank you!