Coming three months later, I took the last hours of my Friday to work
on this again, because I was doing too many single queries that I
wanted to replace by a single query for all the elements in
aCollection.
This query made it and I'm leaving it here for posterity.
The answer was in the #testReadTransactionWithMaxSubselect test case.
query := SimpleQuery read: GwPlayerHandicap where: [ :each |
(each player in: aCollection) AND: [
each date = ((Query
read: GwPlayerHandicap
where: [ :subHcp |
subHcp player = each player AND: [
subHcp date <= aDate ] ]) retrieve: [ :subHcp |
subHcp date max ]) ] ].
Best regards!
Esteban A. Maringolo
> --
> You received this message because you are subscribed to the Google Groups "glorp-group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
glorp-group...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/glorp-group/c51b1229-6005-4b97-b217-2b610dd2cfabn%40googlegroups.com.