Reputation: 109
we have heard if we want to save binary data as value to couchbase, it encoded with base64, which expand 30% in size and consume encode decode time. it may not acceptable, any other solutions? eg. modify couchbase to support binary value? thanks
BTW, any description doc on codes?
Upvotes: 3
Views: 2167
Reputation: 5323
You can store any kind of value you want in Couchbase. This includes binary documents, JSON documents, etc. The only thing to keep in mind is that we only index JSON documents so you can't query into binary data. Documents are only shown in base64 in the Web UI and may be stored that way on disk, but this should be completely transparent to you. You should not have to worry about anything being in base64 in your application unless of course you do this yourself.
Upvotes: 1