MySQL server compacting

This is a discussion on MySQL server compacting within the MySQL Database forums, part of the Database Forums category; Hello! I have heard lately that when sb has very big mysql database and call delete sql query many times ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-11-2007
MZ
 
Posts: n/a
Default MySQL server compacting

Hello!

I have heard lately that when sb has very big mysql database and call delete
sql query many times on this database it generates many gaps in database.
That`s why database store a big space on hardware and can work lower. Is it
true?

Moreover, I have heard that in this case there is a need to compact database
(from time to time) to fill/remove gaps and this will make such database
more efficient. How to do that in phpmyadmin? Is it a thing which has to be
done by admins? Should I do it by myself? If so, how can I do this in
phpmyadmin? Should I take care for some things - which then?

Thank you a lot
Marcin


Reply With Quote
  #2 (permalink)  
Old 06-11-2007
lark
 
Posts: n/a
Default Re: MySQL server compacting

MZ wrote:
> Hello!
>
> I have heard lately that when sb has very big mysql database and call delete
> sql query many times on this database it generates many gaps in database.
> That`s why database store a big space on hardware and can work lower. Is it
> true?
>
> Moreover, I have heard that in this case there is a need to compact database
> (from time to time) to fill/remove gaps and this will make such database
> more efficient. How to do that in phpmyadmin? Is it a thing which has to be
> done by admins? Should I do it by myself? If so, how can I do this in
> phpmyadmin? Should I take care for some things - which then?
>
> Thank you a lot
> Marcin
>
>


it's good practice to reorg your table periodically specifically to
overcome the "gap" problem you're talking about.

as far as phpmyadmin, i am not sure but i think i've seen a button
somewhere to run table optimization commands. maybe ask phpmyadmin folks!
Reply With Quote
  #3 (permalink)  
Old 06-11-2007
Paul Lautman
 
Posts: n/a
Default Re: MySQL server compacting

MZ wrote:
> Hello!
>
> I have heard lately that when sb has very big mysql database and call
> delete sql query many times on this database it generates many gaps
> in database. That`s why database store a big space on hardware and
> can work lower. Is it true?
>
> Moreover, I have heard that in this case there is a need to compact
> database (from time to time) to fill/remove gaps and this will make
> such database more efficient. How to do that in phpmyadmin? Is it a
> thing which has to be done by admins? Should I do it by myself? If
> so, how can I do this in phpmyadmin? Should I take care for some
> things - which then?
> Thank you a lot
> Marcin


It is the Optimize table option and can be found on the operations tab of
phpmyadmin:
http://dev.mysql.com/doc/refman/5.0/...ize-table.html


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0