I'm using psycopg2 in a python script:
conn = psycopg2.connect(......)
cur = conn.cursor()
cur.execute("select * from table1")
rows = cur.fetchall()
for a1 in rows: # how to shuffle them?
I want the rows to be in a different order each time I retrieve them. How can I do that?
update:
the amount of rows is around 50.000