Re:Optimizing your CouchDB Calls by 99% (no strings attached)
by pavel_lishin on Tuesday September 27, 2011 @04:58PM
(#3045201)
Thank you. I'm too ADD for videos, and besides, don't know of an easy way to import them into iTunes as a podcast-style video (one that won't restart from the beginning if I stop it halfway through.)
Re:Optimizing your CouchDB Calls by 99% (no strings attached)
by RickHull on Tuesday September 27, 2011 @05:18PM
(#3045273)
Is that a bug or a feature? ;)
Re:Optimizing your CouchDB Calls by 99% (no strings attached)
by timanglade on Tuesday September 27, 2011 @05:51PM
(#3045406)
You missed 2 of the 6 warnings.
Don't use the “magic” CouchRest features (try to stick to #get, #put, etc.)
Try to keep your CouchDB as close as possible to your app servers. (Again, should go without saying but you'd be surprised…)
Don't use CouchRest::Database! because it tries to create the DB each time. (Use CouchRest::Database instead)
Don't let multi_json pick the json library! Pick jsonx yourself before couchrest runs.
Don't use HTTPS for internal connections.
For the last 3%... He hacked in a binary format into couchrest and couchdb in 10 lines of code.