I have the follow sql statement in a program I am building, where id_list is sometimes a very large list.
for id in id_list:
self.cursor.execute("""update songs set rating='L' where trackid=?""", (id,))
self.db.commit()
Is there a more efficient way of doing this that doesn't involve so many update queries?