Performance and the optional binary Couchdb adapter

6 views
Skip to first unread message

Rue the Ghetto

unread,
Nov 28, 2009, 10:50:13 PM11/28/09
to couc...@googlegroups.com
Matt and I had a chance to talk at RubyConf, and one of the things he talked about was a binary/socket adapter for couchdb to increase performance. 

I am just starting to do some speed tests on CouchRest, Aqua (my little project) and ActiveRecord. ActiveRecord is about 25% faster in single thread creates. I am guessing that this has to do with the relative speed of http versus an established socket connection.

I am interested in working on this kind of socket adapter, but don't have any background on this. Matt, do you have any info? Anyone else?

-- Kane

Matt Aimonetti

unread,
Nov 28, 2009, 11:55:52 PM11/28/09
to couc...@googlegroups.com
There are a few things you could try:
  • use another db adapter instead of rest-client and keep the connection open. (recycle the http connection)
  • use a pool of http connections to query in parallel.
  • user bert-rpc and connect directly to couchdb without using http
  • build a http reverse proxy cache using rack. (this is a bit tricky since couch uses POST requests to retrieve data)
- Matt


--

You received this message because you are subscribed to the Google Groups "CouchRest" group.
To post to this group, send email to couc...@googlegroups.com.
To unsubscribe from this group, send email to couchrest+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/couchrest?hl=en.

Reply all
Reply to author
Forward
0 new messages