I've got an application that pulls tweets from twitter and organizes them
by hashtag, so
{"_id": "#whatever", "tweets": [{tweet 1}, {tweet 2},...]}.
I'm noticing a performance hit with popular hashtags--my app pulls down the
whole document, appends the tweet to the array, and then puts the updated
doc back in the db.
I *think* this would be a good job for update functions, but I've had a
devil of a time learning much about them. I might just be a little dense,
but after reading through
https://wiki.apache.org/couchdb/Document_Update_Handlers and
http://docs.couchdb.org/en/latest/couchapp/ddocs.html#update-functions a
few times each, I'm still a bit lost. Can anyone recommend some good
resource for learning about update functions?
Thanks,
-sam