You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are we planning to automatically send inserted data as json from the drivers rather than converting it to protocol buffers? It seems like in the drivers where we know that the protocol buffer serialization is a lot slower than json serialization (which AFAIK is all of them) we should do this automatically since it will be a huge performance boost that will help with first impressions. No reason to make people think about something extra for performance reasons when they don't have to.
If you're thinking about compressing the JSON, you should maybe consider some higher-speed compression algorithms like Snappy or LZ4 (the latter of which claims to be able to approach memory speeds)... compression ratios aren't quite as good, but you get the extra compactness basically for free, unlike with gzip.
I'm now convinced of the merits of this. Even after we add additional data types to RethinkDB many users will still be working with plain old JSON as a lingua franca amongst different pieces of their application. Though it won't be universal, the shortcut will continue to be very valuable to users who want to feed existing JSON documents directly into RethinkDB.
I think we're all in agreement here. I think this issue should only be for implementing the term on the server and the drivers, and making the drivers use it implicitly for performance should be part of the performance improvement issues if and only if we're unable to move to good protobuf libraries.
Activity
jdoliner commentedon Jun 11, 2013
Are we planning to automatically send inserted data as json from the drivers rather than converting it to protocol buffers? It seems like in the drivers where we know that the protocol buffer serialization is a lot slower than json serialization (which AFAIK is all of them) we should do this automatically since it will be a huge performance boost that will help with first impressions. No reason to make people think about something extra for performance reasons when they don't have to.
coffeemug commentedon Jun 11, 2013
I think the original plan was to automatically use
r.jsonterm whenever possible (possibly gzipped too).jdoliner commentedon Jun 11, 2013
K, I like that idea.
apendleton commentedon Jun 13, 2013
If you're thinking about compressing the JSON, you should maybe consider some higher-speed compression algorithms like Snappy or LZ4 (the latter of which claims to be able to approach memory speeds)... compression ratios aren't quite as good, but you get the extra compactness basically for free, unlike with gzip.
wmrowan commentedon Jun 17, 2013
I'm now convinced of the merits of this. Even after we add additional data types to RethinkDB many users will still be working with plain old JSON as a lingua franca amongst different pieces of their application. Though it won't be universal, the shortcut will continue to be very valuable to users who want to feed existing JSON documents directly into RethinkDB.
mlucy commentedon Jun 18, 2013
I think we're all in agreement here. I think this issue should only be for implementing the term on the server and the drivers, and making the drivers use it implicitly for performance should be part of the performance improvement issues if and only if we're unable to move to good protobuf libraries.
coffeemug commentedon Jun 18, 2013
👍
jdoliner commentedon Jun 24, 2013
This is in CR 658.
jdoliner commentedon Jun 26, 2013
This is in next.
jdoliner commentedon Jun 26, 2013
In as of a2bcce4. Ships in 1.7.