473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Why is my MySQL table building an "Overhead"/what is that/how can I prevent it?

Hey Folks,
I hope you'll be nice to me and let this post go through even know its
mysql and not directly php.
But of course my script is php.

The problem is, that my Table (1,8 MIO entries/100 MB/MyISAM) is not
working anymore. Everytime my script wants to write in something the
number of entries decreases, and at the "Overhead" column the number is
growing.

How can I make my table work without that overhead problem, without any
further crashes and without loosing my data?

If I use the repair or optimize function (phpmyadmin) the overhead is
deleted, but the data is still lost, and the next time my script trys
to put in something more entries will be deleted.

I hope you can help me with this.
Have a good Sunday.

Flo.

Jul 17 '05 #1
3 2776
f.*******@gmail.com wrote:
Hey Folks,
I hope you'll be nice to me and let this post go through even know its
mysql and not directly php.
But of course my script is php.

The problem is, that my Table (1,8 MIO entries/100 MB/MyISAM) is not
working anymore. Everytime my script wants to write in something the
number of entries decreases, and at the "Overhead" column the number is
growing.

How can I make my table work without that overhead problem, without any
further crashes and without loosing my data?


I'm no DBA or mysql-wiz, but I'm sure overhead is probably just that,
the db is running with a little slack. I'm guessing disk-space which is
reserved but not currently in use.

You _really_ don't want to move data around whenever a 'hole' occurs,
say as a single row is deleted. Instead you keep that space open, and
sooner or later there will probably come an insert which fits in that
space. Perhaps a few bytes shorter, but what difference does a few
bytes, or even a million combined, make in a 100MB+ db.

Overhead increasing at the same time as data goes bye-bye makes perfect
sense, but I'm sure even mysql wouldn't delete already stored rows
unless you tell it to.

Just forget about the whole overhead issue, focus on fixing your code
instead. Run an optimize whenever you're wasting more disk space than
you can afford. Best of luck.
Jul 17 '05 #2
Frank wrote:
f.*******@gmail.com wrote:
Everytime my script wants to write in something the
number of entries decreases, and at the "Overhead" column the number is
growing.

How can I make my table work without that overhead problem, without any
further crashes and without loosing my data?


I'm no DBA or mysql-wiz, but I'm sure overhead is probably just that,
the db is running with a little slack. I'm guessing disk-space which is
reserved but not currently in use.


Indeed.

If it's still happenning after you have done a comprehensive repair on your
database files then something is seriously wrong. MySQL is (IME) quite
reliable. Try switching disks and/or upgrading/downgrading to a recent
stable version.

C.
Jul 17 '05 #3
On 17 Apr 2005 13:42:35 -0700, "f.*******@gmail.com"
<f.*******@gmail.com> wrote:
The problem is, that my Table (1,8 MIO entries/100 MB/MyISAM) is not
working anymore.
Repair your tables and ensure that your server is operating correctly
(no disk corruption, bad memory, etc).
How can I make my table work without that overhead problem, without any
further crashes and without loosing my data?


"Overhead" is a normal part of the operation of the database. When
you delete something, the space isn't immediately reclaimed. When new
records are added, it fills the overhead space. This is a performance
optimization and there is no harm in it.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Randell D. | last post by:
Folks, My internet access is intermitent until I get my own connection inside the next ten days - I say this so that I can thank in advance who ever gives a few seconds to read/answer my...
2
by: Dave Williamson | last post by:
When a ASPX page is created with dynamic controls based on what the user is doing the programmer must recreate the dynamic controls again on PostBack in the Page_Load so that it's events are wired...
21
by: Johan Tibell | last post by:
I would be grateful if someone had a minute or two to review my hash table implementation. It's not yet commented but hopefully it's short and idiomatic enough to be readable. Some of the code...
6
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET...
26
by: anonieko | last post by:
In the past I always used "" everywhere for empty string in my code without a problem. Now, do you think I should use String.Empty instead of "" (at all times) ? Let me know your thoughts.
14
by: mlw | last post by:
Do not take anything about this, it is not a flame or troll, while I'm not new to Java I favor C++. However, I may need to use it in a contract position, and am concerned that the restrictions it...
3
devikacs
by: devikacs | last post by:
I wanted to know the overhead in creating a new table. What i mean is, is it better to have more tables or redundant columns in a single table.
3
by: randy.buchholz | last post by:
I'm trying to standardize a layout methodology for our agency and am looking for some guidance. Most of the applications are basic store and retrieve types, and extensively use a DetailsView type...
4
by: Tree*Rat | last post by:
Been working on a CMS for a few months now and noticed that in phpMyAdmin it shows that one table in the database (mysql) has bad overhead, so I keep having to optimize the table. What causes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.