Hey Ryan, Thanks for the reply! Yeah, I notice that some casts or even some multiplications helped on sql directly, but I can't even do some of those castings on django itself. I ended up opening an issue there so they can maybe workaround this issue. The issue here: https://code.djangoproject.com/ticket/32861#ticket