Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Creating 'summary documents' on active data

MIME-Version: 1.0
Received: by 10.101.20.1 with SMTP id x1mr1016464ani.28.1255531883999; Wed, 14 
	Oct 2009 07:51:23 -0700 (PDT)
Date: Wed, 14 Oct 2009 07:51:23 -0700 (PDT)
In-Reply-To: <5d5a1dc8-160d-4a9c-bd55-b6ed38700515@l13g2000yqb.googlegroups.com>
X-IP: 216.156.98.230
References: <5d5a1dc8-160d-4a9c-bd55-b6ed38700515@l13g2000yqb.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) 
	Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Message-ID: <4aff3383-6711-4066-9d73-35461980c451@d10g2000yqh.googlegroups.com>
Subject: Re: Creating 'summary documents' on active data
From: dwight_10gen <dwi...@10gen.com>
To: mongodb-user <mongodb-user@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

how often do you want to (re)calculate the summarizes?  near realtime
or infrequent (daily)?


On Oct 14, 10:34=A0am, Wouter <wiegm...@gmail.com> wrote:
> I want to be able to create 'summary documents' (the Mongo equivalent
> of summary tables :-)).
>
> Once the summary document is created, it will be updated using $inc /
> $set, meaning the summary will be always up to date (that's what I
> need :-)).
>
> The process to create a summary looks like this:
>
> 1) Retrieve relevant data
>
> 2) Calculate summary
>
> 3) Store results in summary document
>
> 4) Update summary document when data is updated/added.
>
> However, if data is added/updated between step 1 and step 3, the