Knowing what is not a good idea means you know what the good idea is, logically. So, Galago, what's the good idea??? Sent from my BlackBerry wireless device from MTN
-----Original Message----- From: galago <prog...@gmail.com> Sender: django-users@googlegroups.com Date: Sun, 20 Feb 2011 14:19:14 To: <django-users@googlegroups.com> Reply-To: django-users@googlegroups.com Subject: Select x random rows from DB What is the best way, to select X random rows from DB? I know that method: .all().order_by('?')[:X] is not good idea. What methods do you use? -- You received this message because you are subscribed to the Google Groups "Django users" group. 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. -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.