Re: Seperate Tables for Same Data?

From: Date: Thu, 30 Aug 2001 15:46:04 +0000
Subject: Re: Seperate Tables for Same Data?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11993@lists.php.net to get a copy of this message
I'd suggest only inserting data into the "working" table throughout the day, then on a nightly basis drop the index on the archived table, import the data from the working table into the archived one, re-create the index and clear out your working table. As time goes on that archived table is going to get huge and you don't want your DB trying to insert into something like that during production hours. Better off waiting for some downtime where you can batch the whole thing in there. Just my two cents. Justin Buist Trident Technology, Inc. 4700 60th St. SW, Suite 102 Grand Rapids, MI 49512 Ph. 616.554.2700 Fx. 616.554.3331 Mo. 616.291.2612 On Thu, 30 Aug 2001, jv wrote: > Greetings, > > I am setting up two seperate tables that will hold identically INSERTed > data. The reason for this is that one table will hold data that will expire > by timestamp daily and the other will hold the very same data for later > manipulation. > > Is sending identical data like this to two seperate tables a good practise > or is there a better way? > > Thanks, > > James > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#11993) next »