Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thingdeux opened this issue Jun 29, 2015 · 1 comment
Open

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

thingdeux opened this issue Jun 29, 2015 · 1 comment

Comments

@thingdeux
Copy link

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

You can always override it extending the Device model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants