Forum Moderators: coopster

Message Too Old, No Replies

mySQL table or better new database

         

mcibor

5:59 pm on Jan 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a large database, which is used only in part. Therefore I want to place the records that are not so needed in another place.

The question is:

Would it be better to place those records in a new database, or just another table will be enough to take weight from the mysql?

Which way would be faster?

Thanks for any help!

dmorison

6:17 pm on Jan 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just using another table will be fine. Tables are just files on disk to MySQL; the quantity of data has no impact on performance until you come to query it.

mcibor

8:21 pm on Jan 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks!

Tell me just. How can I move one record from one table to another, that has the same structure?

freeflight2

8:51 pm on Jan 4, 2005 (gmt 0)

10+ Year Member



INSERT INTO Table_other SELECT * FROM Original_Table WHERE row=id_of_a_row_you_want_to_copy

once that succeeds you can delete the row from the original table

coopster

11:38 am on Jan 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Every once in awhile you may want to then OPTIMIZE [dev.mysql.com] that table.