Skip to content

Commit

Permalink
Minor grammar fix to FAQ
Browse files Browse the repository at this point in the history
Missing subject.
  • Loading branch information
esamson committed Oct 21, 2015
1 parent f75fdde commit 8ae6b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/documentation/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ You can't change the overall batch size once generated, but you can change the n

### How do I aggregate events by time?

If have records with an immutable timestamp, and you would like to count, average or otherwise aggregate them into discrete time buckets, Trident is an excellent and scalable solution.
If you have records with an immutable timestamp, and you would like to count, average or otherwise aggregate them into discrete time buckets, Trident is an excellent and scalable solution.

Write an `Each` function that turns the timestamp into a time bucket: if the bucket size was "by hour", then the timestamp `2013-08-08 12:34:56` would be mapped to the `2013-08-08 12:00:00` time bucket, and so would everything else in the twelve o'clock hour. Then group on that timebucket and use a grouped persistentAggregate. The persistentAggregate uses a local cacheMap backed by a data store. Groups with many records require very few reads from the data store, and use efficient bulk reads and writes; as long as your data feed is relatively prompt Trident will make very efficient use of memory and network. Even if a server drops off line for a day, then delivers that full day's worth of data in a rush, the old results will be calmly retrieved and updated -- and without interfering with calculating the current results.

Expand Down

0 comments on commit 8ae6b57

Please sign in to comment.