[infinispan-dev] data interoperability and remote querying

Randall Hauch rhauch at redhat.com
Wed Apr 10 15:51:09 EDT 2013


On Apr 10, 2013, at 1:46 PM, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
>>> I'm not sure JSON should be the format though. As you said it's quite
>>> verbose and string is not exactly the most efficient way to process
>>> data.
>> 
>> What would that format be, then?
> 
> Good question :) BSON is not necessarily smaller than JSON, it is meant
> to be more parseable afair. I did use Avro in Hibernate Search as I find
> ProtBuffer and the others too rigid for my needs to pass arbitrary
> datasets. But if we have a schema and expect a given object type, then
> we can start saving space a lot.

Actually, I would suspect that the JSON compresses much smaller than the size of the BSON. The advantage of BSON, however, is the additional types that are supported, including binary, timestamps, etc.


More information about the infinispan-dev mailing list