> On Aug 21, 2014, at 12:22 AM, Sherry Ummen <[email protected]> wrote: > > Coming to question; the data what we store has some meta data like > name,type,datemodified so these meta data are queried often; rest of the data > should be in its native format so that system can understand. So yes some > amount of query required.
Then all you need to do is store the queryable attributes in JSON; the rest can go in an attachment. This helps performance because when a document is indexed only the JSON part is parsed. > how the system will behave in terms of syncing? since we have multi user > scenario (mainly cause of which we are looking at couchbase lite) and if we > store it as attachments how will it affect it? How will be the speed or > performance? Main challenge here is the performance Attachments are a part of the document, so they're always transferred when the document is replicated. Again, using attachments for large data will speed up replication because the attachments never get parsed, they're just transmitted directly as raw data. > Hmm right now we are always converting our native format to json format (a > bit of overhead); so if not JSON do you suggest something else? I had it so > that we can only store it as JSON only. Attachments can be any format you want; Couchbase Lite doesn't care what's in them. You can use your old binary format if you like. > I see the .net API and the PutLocalDocument take paramter as > Dictionary<string,object> so this object can be any C# object type? or should > be in a specific json format? (may be a dumb question) I don't know the C# API, but I'm pretty sure it only types that parameter as 'object' because there's no specific way to say "boolean, number, string, array or dictionary". It's going to get converted to JSON so it can only contain types that can be represented as JSON. —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/166FAD19-A21F-49CC-9081-B1F1207F6C00%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
