janmonschke / backbone-couchdb

A couchdb connector for backbone with support for real time changes.

Home Page:http://janmonschke.com/projects/backbone-couchdb.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bycollection view should probably return doc_.id instead of doc

boxxxie opened this issue · comments

when doc is returned it will list _conflicts and _deleted_conflitcs if they exist, these fields will not be included when the doc is downloaded via it's url. i haven't tested but i think that include docs will provide a similar document as downloading via the url.

i'm not sure, but i think that saving a doc with _conflicts could cause problems.

This would also make the stored view a lot smaller - which is probably a good thing.

when i replied to you i was less experienced with couchdb, your setup works
for speed optimization, a user may want to optimize for space optimization,
where include_docs and doc_.id (or anything in the value of the map) would
be fine.

one of the big issues i have with couch db is that i usually never want the
document until i need to save it, and i tend to use a lot of views over the
same documents (documents get more and more complicated, but my views make
the data manageable).

anyway, i'm hacking together a new site, and your strategy is one i'm using
for now. it's probably the best one to use for starting something simple
and not having to worry about speed problems until I have to worry about DB
size problems.

~~
Paul Joseph Iannazzo.

On Thu, Mar 1, 2012 at 10:50 AM, Mike McKay <
reply@reply.github.com

wrote:

This would also make the stored view a lot smaller - which is probably a
good thing.


Reply to this email directly or view it on GitHub:

#23 (comment)

I mentioned this in issue #26, but your best option may be to have your views emit(key,null) and fetch your collections like so: collection.fetch({include_docs:true}).

it would be nice if the user was able to decide on either option (not both)
based on their needs

~~
Paul Joseph Iannazzo.

On Fri, Mar 2, 2012 at 8:51 AM, Kurt Milam <
reply@reply.github.com

wrote:

I mentioned this in issue #26, but your best option may be to have your
views emit(key,null) and fetch your collections like so:
collection.fetch({include_docs:true}).


Reply to this email directly or view it on GitHub:

#23 (comment)

Can I close this one?
The include_docs options can now get passed wo collection.fetch() -> #34