incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Aljord <>
Subject Re: The Blog
Date Mon, 09 Feb 2009 06:41:37 GMT
On Sun, Feb 8, 2009 at 11:52 PM, Mister Donut <> wrote:
> So.
> The blog.
> Store the comments inside the blog entry.

Bad idea, store comments in their own docs.

> Great! Views, here I come! All problems solved!
> Wait. What if there are ten thousand comments.
> Maybe we would like to count them!

Sure, use the view to get all comments and specify count=0.

> Pagination!
> Let's see. We can implement forward and backward easily.
> But this is getting really annoying if we want move fast.
> Like, see comments starting from two weeks ago. Or posts!
> Sadly, we cannot guess these dates.

startkey, endkey and limit.
> So, what exactly can you do with CouchDB?


> Sooner or later you'll have someone suggesting to implement...
> ...bulk_save!

It's already there.

Make sure you read the docs and ask #couchdb, mailing list is good too.

View raw message