Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > Database
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 9:34 PM   #1
Ted
 
Ted's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Space problems with MEMORY tables

I created the first tables using InnoDB. I successfully loaded the
data without a problem. Now, to make intermediate processing faster
for the batch of data loaded on a given day, I want to try to use
MEMORY tables. That has worked to a point, but with one problem. Only
half of the data I used with the InnoDB tables gets loaded into the
MEMORY tables when the load aborts with an error about the table being
full. It can't be a question of the amount of memory available since
the machine has 2 GB RAM, and each data file is only about 32 MB. At
the rate we're importing data, it would take a century or more to fill
a disk that comes with a new entry level machine! That makes it all
the harder to understand wy I would encounter problems with tables
being full.

My first guess is that this is a configuration issue, but I haven't
fund the relevant documentation for how the maximum table size is
determined. I'd assumed that the tables could be filled until the
available disk space has been consumed, except for memory tables which
would be determined by the available memory. I guess I was mistaken,
but if so, what is the truth?

What part of the documentation talks about issues related to tables
being full?

What is the best way to address this issue?

Thanks,

Ted

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 9:34 PM   #2
Axel Schwenke
 
Axel Schwenke's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Space problems with MEMORY tables

"Ted" <r.ted.byers@rogers.com> wrote:

> I created the first tables using InnoDB. I successfully loaded the
> data without a problem. Now, to make intermediate processing faster
> for the batch of data loaded on a given day, I want to try to use
> MEMORY tables.


I guess this won't help much (but this depends on what you mean with
"intermediate processing"). If you want to "just load" data into tables
you should load directly. There is absolutely no benefit from loading
data into intermediate MEMORY tables and copy it into the real INNODB
tables later. The manual contains lots of tips on howto load data fast:
RTFM here: http://dev.mysql.com/doc/refman/5.0/...ert-speed.html

Since you are using InnoDB: make sure AUTOCOMMIT is turned off for
loading data into InnoDB tables.

> That has worked to a point, but with one problem.
> ... the load aborts with an error about the table being
> full.


MEMORY tables have a (configurable) size limit. RTFM here:
<http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html>

> My first guess is that this is a configuration issue, but I haven't
> fund the relevant documentation for how the maximum table size is
> determined. I'd assumed that the tables could be filled until the
> available disk space has been consumed, except for memory tables which
> would be determined by the available memory. I guess I was mistaken,
> but if so, what is the truth?


You guessed correctly for on-disk-tables - with few exceptions, read
below. However in most cases it is not a good idea to allow unlimited
use of memory by the database server. So all allocation of memory in
MySQL is limited by respective configuration settings. RTFM here:
<http://dev.mysql.com/doc/refman/5.0/en/memory-use.html>

For most on-disk-tables there is no explicit size limit. Your tables
can grow as long as the corresponding files can grow on your disk.
There are few exceptions though:

1. for efficiency MYISAM data files will be addressed using 32 bit
pointers by default. That means you have a soft limit of 4GB data
per MYISAM table. To overcome this limit you have to explicitly
specify number of rows and avg. row size in ALTER/CREATE TABLE.
If the product of both numbers exceeds 4GB, this MYISAM table will
use 48 bit pointers.

2. InnoDB stores all data/indexes together in one or more tablespaces.
Tablespaces can have a fixed size, in that case there is a size
limit for all database objects. Usually one has the "autoextend"
option in place, that allows a tablespace to grow.

There are some more limits, most of them specific to the storage engine
used. RTFM here:
<http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html>


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
more problems with php displaying tables greg@gofothdesigns.com PHP 2 07-01-2007 3:19 PM
Sub: Limited space SB Car audio 1 06-17-2007 3:02 PM
Space based game Steve Webb Software Programming 10 06-12-2007 10:22 PM
docs about access tables, operation tables, volume tables BradPitt Database 0 05-31-2007 8:42 PM
Monitoring HD Space FilleFolle Computer Memory (RAM) and Hard Drives 1 08-01-2006 1:14 AM


Featured Websites




All times are GMT +1. The time now is 12:11 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98