<ha******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
snip>
Do you have some link (like a white paper) that deal with these issues.
Basically i would like to know if my solution is scalable.
<snip>
Just the MySQL documentation with their scattered comments about Dynamic Vs
Static tables. Any table containing a BLOB field is necessarily dynamic. I
always strive to keep them static. I've copied a section if text from the
documentation below.
*** "static format is the simplest and most secure (least subject to
corruption). ..."
***" Easy to reconstruct after a crash, ... "
You may also find it informative to read the following section about dynamic
tables that
follows the text I've copied below.
Other than that, I'm just skeptical about using BLOBS.
They scare me and I've never seen a clear reason to use them.
Alternate opinions welcome!
Thomas Bartkus
----------------------------------------------------------------------------
-
15.1.3.1 Static (Fixed-Length) Table Characteristics
Static format is the default for MyISAM tables. It is used when the table
contains no variablelength
columns (VARCHAR, BLOB, or TEXT). Each row is stored using a fixed number of
bytes.
Of the three MyISAM storage formats, static format is the simplest and most
secure (least
subject to corruption). It is also the fastest of the on-disk formats. The
speed comes from
the easy way that rows in the data file can be found on disk: When looking
up a row based
on a row number in the index, multiply the row number by the row length.
Also, when
scanning a table, it is very easy to read a constant number of records with
each disk read
operation.
The security is evidenced if your computer crashes while the MySQL server is
writing to
a fixed-format MyISAM file. In this case, myisamchk can easily determine
where each row
starts and ends, so it can usually reclaim all records except the partially
written one. Note
that MyISAM table indexes can always be reconstructed based on the data
rows.
General characteristics of static format tables:
˛ All CHAR, NUMERIC, and DECIMAL columns are space-padded to the column
width.
˛ Very quick.
˛ Easy to cache.
768 MySQL Technical Reference for Version 5.0.0-alpha
˛ Easy to reconstruct after a crash, because records are located in fixed
positions.
˛ Reorganization is unnecessary unless you delete a huge number of records
and want
to return free disk space to the operating system. To do this, use OPTIMIZE
TABLE or
myisamchk -r.
˛ Usually require more disk space than for dynamic-format tables.