I have a table of over 5000 users and each has a time. What need to to is every time the user completes a race I need to reorder my 'position' table. My process would be to delete the position table - which is joined to the main 'users' table with the id and then run a query to loop through and insert by order.
A few questions
- with this number of users is there going to be a performance issue?
- what is the best way to run the query? Should I just pull them out into an array, order them and then do a loop/insert?
If there is a better way I would love to hear it.