Larry

What a mess!  Unfortunately this is a permanent table with over 13,000 rows.  
Such a simple change sure can cause major pains.

Thanks for the tip
Marc




 
3. If this is permanent, prexisting data, make a temporary table with different 
column names and the longer field sizes.  Then append the data to the temporary 
table, delete the data from the real table, do the ALTERs, and append the data 
back from the temporary table to the real one.
--
Larry



--------------------------------------------------------------------------------
From: MDRD <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Wed, June 16, 2010 8:48:30 AM
Subject: [RBASE-L] - RB2 files quadruples in size?


Hi

The RB2 file went from about 200 megs to over 800 megs all of the sudden?

It appears this block of code caused the problem,  
My only guess is to put a Pack Table every so often to keep from hitting this 
wall

Thanks
Marc


-- there is only 300 rows in this table
 CREATE INDEX v1 ON `spbutton` (`NewButName` ASC )
 CREATE INDEX v2 ON `spbutton` (`V2` ASC )
 CREATE INDEX v3 ON `spbutton` (`V3` ASC )
 CREATE INDEX v4 ON `spbutton` (`V4` ASC )

-- only 10-20 rows in this table the column was Text 50
ALTER TABLE PopTCS  ALTER PopTCSTxt TO PopTCSTxt  TEXT 150

-- only 13,337 rows in this table  the Text fields were 50 each
-- total row size after this is around 3021 
ALTER TABLE travcard ALTER Sympt1 TO Sympt1 TEXT 150
ALTER TABLE travcard ALTER Sympt2 TO Sympt2 TEXT 150
ALTER TABLE travcard ALTER Sympt3 TO Sympt3 TEXT 150
ALTER TABLE travcard ALTER Sympt4 TO Sympt4 TEXT 150
ALTER TABLE travcard ALTER Sympt5 TO Sympt5 TEXT 150

ALTER TABLE travcard ALTER Therapy1 TO Therapy1 TEXT 150
ALTER TABLE travcard ALTER Therapy2 TO Therapy2 TEXT 150
ALTER TABLE travcard ALTER Therapy3 TO Therapy3 TEXT 150
ALTER TABLE travcard ALTER Therapy4 TO Therapy4 TEXT 150
ALTER TABLE travcard ALTER Therapy5 TO Therapy5 TEXT 150

ALTER TABLE travcard ALTER Adj1  TO Adj1 TEXT 150
ALTER TABLE travcard ALTER Adj2  TO Adj2 TEXT 150
ALTER TABLE travcard ALTER Adj3  TO Adj3 TEXT 150
ALTER TABLE travcard ALTER Adj4  TO Adj4 TEXT 150
ALTER TABLE travcard ALTER Adj5  TO Adj5 TEXT 150



Reply via email to