Okay well its for a database that tracks poker hands. A document might
look something like this:
{
"Name": "Screenname",
"Site": 1,
"TotalHands": 4548,
"WinningsGraphData" :
{
{ Date: "06/20/11", Winnings: 864.32 },
{ Date: "06/21/11", Winnings: 554.32 },
{ Date: "06/22/11", Winnings: -332.45 },
{ Date: "06/28/11", Winnings: 164.32 }
}
So when I insert a new hand history I also need to update the graphs
data for that player. They may have never played a hand on that date
so it would be a new entry, or they may have so I need to increment
the winnings. In addition, when I update the graphs for that hand the
player may not even exist so the entire player is upserted.