Timeline for Group collections by their elements property
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2012 at 11:38 | vote | accept | Seekeer | ||
Nov 19, 2012 at 8:51 | comment | added | Seekeer | Thanks a lot for such solution. As soon as number of transaction can be really big, it can save a lot of time. I'll compare it with svick's code. | |
Nov 16, 2012 at 6:44 | comment | added | almaz | I've updated my response according to your update | |
Nov 16, 2012 at 6:44 | history | edited | almaz | CC BY-SA 3.0 |
Updated response based on updated question
|
Nov 16, 2012 at 6:22 | history | edited | almaz | CC BY-SA 3.0 |
added 1 characters in body
|
Nov 16, 2012 at 6:16 | comment | added | Seekeer | problem is that I am getting transaction not from DB, but from really dumb web service, it can't do grouping. I've updated question with a sample of calculations. | |
Nov 16, 2012 at 5:48 | comment | added | almaz | Can you provide a sample of calculations you're doing? | |
Nov 16, 2012 at 5:42 | comment | added | almaz | In this case I would rather use DB capabilities to groups transactions by CustomerId, unless you are doing some complex calculations there. | |
Nov 16, 2012 at 5:33 | comment | added | Seekeer | I really need to load all transactions. The task is to calculate sales for all customer for some period of time. So, first I'd get list of all transactions for this time, then to group them by customer, then calculate sales for each customer. Thanks for nice code. | |
Nov 15, 2012 at 21:17 | history | answered | almaz | CC BY-SA 3.0 |