Changes between Initial Version and Version 1 of Ticket #29416
- Timestamp:
- May 18, 2018, 5:12:18 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29416 – Description
initial v1 33 33 As you can see, the ORM appended the subquery `(SELECT COUNT(*) FROM pro_moderation WHERE objType='sponsor' AND objId=ala_sponsor.sponId AND state=2)` to the GROUP BY clause. Which is wrong, and takes forever to execute. 34 34 35 ----- 36 ----- 37 35 38 I tried to play with `.values('id')` or such as I usually do when I get unexpected GROUP BY. I spent an afternoon on it but there's no way I could get rid of this undesired group by clause. The `order_by` is not to blame either. Here is another example of what I tried: 36 39