How do i update multiple rows efficiently?
- One statement
- Multiple statements
Can a single statement string become too large for SQL to handle (10000+ entries/rows)?
I have one single variable to modify, which is status:
| id | status |
My data is stored in a List (ArrayList).
It could be more efficient to use the Load Data command in MySQL. Provided you can structure your input into CSV format. Utilize the REPLACE and/or IGNORE keywords appropriately. This will be much faster than 1000’s of individual statements to MySQL.