I have an online database with 4k records. Updating is done with a php update script which first drops the old table, creates a new one and inserts the data. It takes about 2 minutes and during this time, the site is unresponsive.
Is there a better way to achieve this. Perhaps creating a second table, and renaming it?
Is there a better way to achieve this. Perhaps creating a second table, and renaming it?