There is an open issue on github to implement incremental views.
You are correct- right now PouchDB runs map-reduce on every document in the database, every time you call query
, so performance is not great. For small databases this is fine, but obviously it's a problem for larger dbs.