couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "HTTP view API" by CuriousAttemptBunny
Date Thu, 26 Feb 2009 04:09:33 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by CuriousAttemptBunny:
http://wiki.apache.org/couchdb/HTTP_view_API

------------------------------------------------------------------------------
  
  == Temporary Views ==
  
- One-off queries (eg. views you don't want to save in the CouchDB database) can be done via
the special view ''_slow_view''. Temporary views are only good during development. Final code
should not rely on them as they are very expensive to compute each time they get called and
they get increasingly slower the more data you have in a database. If you think you can't
solve something in a permanent view that you can solve in an ad-hoc view, you might want to
reconsider. (TODO: add typical examples and solutions).
+ One-off queries (eg. views you don't want to save in the CouchDB database) can be done via
the special view ''_temp_view''. Temporary views are only good during development. Final code
should not rely on them as they are very expensive to compute each time they get called and
they get increasingly slower the more data you have in a database. If you think you can't
solve something in a permanent view that you can solve in an ad-hoc view, you might want to
reconsider. (TODO: add typical examples and solutions).
  
  {{{
- POST /some_database/_slow_view  HTTP/1.0
+ POST /some_database/_temp_view  HTTP/1.0
  Content-Length: 48
  Date: Mon, 10 Sep 2007 17:11:10 +0200
  Content-Type: application/json

Mime
View raw message