Could CouchDB benefit significantly from the use of BERT instead of JSON?

Posted by Victor Rodrigues on Stack Overflow See other posts from Stack Overflow or by Victor Rodrigues
Published on 2010-01-26T03:21:42Z Indexed on 2010/04/01 6:23 UTC
Read the original article Hit count: 548

Filed under:
|
|
|
|

I appreciate a lot CouchDB attempt to use universal web formats in everything it does: RESTFUL HTTP methods in every interaction, JSON objects, javascript code to customize database and documents.

CouchDB seems to scale pretty well, but the individual cost to make a request usually makes 'relational' people afraid of.

Many small business applications should deal with only one machine and that's all. In this case the scalability talk doesn't say too much, we need more performance per request, or people will not use it.

BERT (Binary ERlang Term http://bert-rpc.org/ ) has proven to be a faster and lighter format than JSON and it is native for Erlang, the language in which CouchDB is written. Could we benefit from that, using BERT documents instead of JSON ones?

I'm not saying just for retrieving in views, but for everything CouchDB does, including syncing. And, as a consequence of it, use Erlang functions instead of javascript ones.

This would modify some original CouchDB principles, because today it is very web oriented. Considering I imagine few people would make their database API public and usually its data is accessed by the users through an application, it would be a good deal to have the ability to configure CouchDB for working faster. HTTP+JSON calls could still be handled by CouchDB, considering an extra cost in these cases because of parsing.

© Stack Overflow or respective owner

Related posts about couchdb

Related posts about erlang