you might want to check out filter functions from the changes feed - this would allow you to do more 'intense' querying from the database.
http://guide.couchdb.org/draft/notifications.html <http://guide.couchdb.org/draft/notifications.html>though, from my experience, it seems that using the filters function from the changes database is slower than querying from a view. Has anyone else noticed slow downs between views and changes/filters ?
