Hi,

I'm using a quite huge database with twenty thousand entries or more. At 
the beginning, I used to sort it each time (.sort_by("my_field_name")) I 
need the page but I saw that it took me lot of time to generate the page.

I'm looking for a solution, that allows me to show the data without sorting 
it each time I want to see it. For a instance, sorting the database each 
time I add an entry or each time I add several entries could be a solution.
Is it possible to keep the database sorted by a field without changing the 
pk?

I tried the class Meta with the argument ordering but it didn't work (even 
if I flush the db).

Yours,
-DubZzz

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/AHDF_L1AfYAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to