Jump to content

[SOLVED] table update philosophy


AV1611

Recommended Posts

I have a lot of tables that I update en mass via cron.

I need to delete the table then parse in new data from text file. 

no problem

Philosophy question:

I don't want to delete the old table until I'm sure that the new data is valid.

Is the right method to parse the new data into an array then test the array then delete the old table then parse in the new data from that array, or is there a better way?

Perhaps write to temp table first?

this is a philosophy question
Link to comment
https://forums.phpfreaks.com/topic/32493-solved-table-update-philosophy/
Share on other sites

you wouldnt want to delete the old table straight off incase there is something wrong. i am starting to think that inserting the new table as a test name, checking it then if it is good delete the old table then rename the new table, which i think was mentioned. it just sounds easierish :)
[quote author=corbin link=topic=120607.msg494976#msg494976 date=1167700661]
There has to be  backup to do that htough which makes another step
[/quote]

backup? I don't think so... The database will handle everything without any sort of "backup". Whatever it does behind the scenes is not important -- there's no additional steps from a user point of view.


ProjectFear -- what sort of tests are you performing on your data?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.