Great watch. I will now have to go over all my @property (which felt like hacks, always had an itch when using them) and benchmark them against annotating the queryset as in 19:00, thanks for that neat piece of info!
@georgesmith30223 жыл бұрын
the slides have been deleted :(
@acrossover3 жыл бұрын
I am working with Python 3.7 + Django 2.2.17 + MongoDB (Djongo), but when I use Trunc (database function), ended up with error "raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetime_trunc_sql() method')" which makes me feel like django claims to support this DB function in official reference document (docs.djangoproject.com/en/2.2/ref/models/database-functions/#trunc), however it was not actually implemented in source code. Any thoughts ?