Hi, wondering what the most effective way would be to do the folowing
i have 2 tables, one is current status 2md one is history of a device. I always want to keep the current info in one table and the
history in a second table, that way the current info table is smaller and faster and large querys on the history dont bug it down.
My question now is what is the easyest way to do this since i ultimatly have to either insert or update the current table and then
also insert into history table.
Is it better to go and query the current table and if no match insert, if match update or just delete the record and always insert a new one ?
As for the history table depending on the above solution i could either query the current one and insert it into history or go and
just always insert into history as well as current table.
Just as a note there will be between 50000 and 100000 in the current table and there will be up to a 1 Mio updates per hr so thats why i am looking