django-gcm icon indicating copy to clipboard operation
django-gcm copied to clipboard

Practical reason for the model ordering on Device LastUpdated?

Open thingdeux opened this issue 9 years ago • 1 comments

Hi, thanks for making this app!

Just wondering why there's a forced queryset ordering on the lastupdated field for a device? If I have an incredibly large number of devices and I need to evaluate them in a queryset for any reason, there's an unnecessary expensive sort placed on them. I get why you'd want to do it for maybe the admin form but at the model level I'm not sure it's worth the performance hit?

thingdeux avatar Jun 29 '15 15:06 thingdeux

You can always override it extending the Device model.

andres-torres-marroquin avatar Jan 11 '16 19:01 andres-torres-marroquin