bogdal / django-gcm

Google Cloud Messaging Server in Django
https://django-gcm.readthedocs.org
BSD 2-Clause "Simplified" License
98 stars 42 forks source link

Practical reason for the model ordering on Device LastUpdated? #30

Open thingdeux opened 9 years ago

thingdeux commented 9 years ago

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?

andres-torres-marroquin commented 8 years ago

You can always override it extending the Device model.