
Originally Posted by
wwb_99
Gotcha. This really is still a job for message queuing -- which could likely be easily tuned to group things based on some parameter. The other big question is "does this calculation have cross cutting concerns here?" IE, massively parallelizing a running total that needs all other things to be calculated won't actually help.
The basic operation will be to summarize an array across a time period for each given "ID"
Code:
{
ID: "2v23kksdf", //my fake id, like it?
day: "1/2/2013"
log: [
{action: "foo", duration: 3},
{action: "foo", duration: 2},
{action: "bar", duration: 5}
]
}
{
ID: "2v23kksdf", //my fake id, like it?
day: "1/3/2013"
log: [
{action: "foo", duration: 2},
{action: "foo", duration: 7},
{action: "bar", duration: 1}
]
}
It will wind up being a month's worth that I will be summarizing, per ID, summarize each action in log into a new collection.
Bookmarks