Unix Technical Forum

MySQL server compacting

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


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:00 AM
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:01 AM
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:01 AM
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com