You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure there's an easier way to write this with jOOQ (or with all other solutions, as the query does contain a bit of redundancy), but first, I'd like to point out that your using a many to many relationship between employee and project seems to hint at the query being wrong as an employee who is assigned to several projects will produce more than their actual costs. I suspect a weighted average should be used instead.
Once this has been done, I guess that by using window functions, you will achieve a much more straightforward (and faster!) solution in all frameworks.
I hope this helps
The text was updated successfully, but these errors were encountered:
Thanks for doing this comparison.
I've stumbled upon this query here:
java-persistence-frameworks-comparison/src/main/java/com/clevergang/dbtests/repository/impl/jooq/JooqDataRepositoryImpl.java
Lines 227 to 263 in f6b3396
I'm sure there's an easier way to write this with jOOQ (or with all other solutions, as the query does contain a bit of redundancy), but first, I'd like to point out that your using a many to many relationship between employee and project seems to hint at the query being wrong as an employee who is assigned to several projects will produce more than their actual costs. I suspect a weighted average should be used instead.
Once this has been done, I guess that by using window functions, you will achieve a much more straightforward (and faster!) solution in all frameworks.
I hope this helps
The text was updated successfully, but these errors were encountered: