473,396 Members | 1,813 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,396 software developers and data experts.

MyISAM max_rows greater than 4294967295?

I'm running MySQL 4.1 under Linux. I need to have a MyISAM table with
more than 4G rows of data.

I've read the manual regarding the MAX_ROWS option on tables. This
table has a fixed row length, with 17 bytes per row.

MySQL simply won't set the ROW_LENGTH greater than 4G. When I use an
ALTER TABLE to set it higher, it acts as though it worked fine, but a SHOW
TABLE STATUS indicates that it is still limited to 4294967295.

I've been searching high and low on this, and the only things I'm
finding (for example in the '1.2.4. How Big MySQL Tables Can Be' section)
keep talking about file size limits of the OS. This isn't the issue. I
have a table that is at the 4G (rows) limit, and it's physical size on
disk is already 74GB. It appears that the addressing is being limited to
4 bytes.

Any ideas on what's imposing this limit? Thanks in advance.

Tom
Jul 23 '05 #1
2 5023
Tom D wrote:
I'm running MySQL 4.1 under Linux. I need to have a MyISAM table with
more than 4G rows of data.
...It appears that the addressing is being limited to 4 bytes.


Yeah, I'd guess that this is the case, especially if the table is indexed.

Have you considered using InnoDB tables instead? The MAX_ROWS option is
specific to MyISAM. I can't quickly find a reference to any maximum
number of rows in InnoDB tables, but perhaps it is greater than 2^32.

Likewise, have you considered that your usage is outside the range of
functionality of MySQL? Apologies for suggesting this on a MySQL
newsgroup, but perhaps you should consider another RDBMS after
researching their row limits per table.

For instance, PostgreSQL claims that the maximum rows per table is
"unlimited."
http://www.postgresql.org/docs/faqs.FAQ.html#4.4

Regards,
Bill K.
Jul 23 '05 #2
On Thu, 21 Apr 2005 12:46:00 -0700, Bill Karwin wrote:
Tom D wrote:
I'm running MySQL 4.1 under Linux. I need to have a MyISAM table with
more than 4G rows of data.
...It appears that the addressing is being limited to 4 bytes.


Yeah, I'd guess that this is the case, especially if the table is indexed.

Have you considered using InnoDB tables instead? The MAX_ROWS option is
specific to MyISAM. I can't quickly find a reference to any maximum
number of rows in InnoDB tables, but perhaps it is greater than 2^32.


Thanks for the reply Bill. Actually I'm going to load these into
and InnoDB table. I can't find anything regarding the 4 billion
row limit on InnoDB either.

Here's what's really annoying. For the sake of the demo I need these
for I was going to just go with the 4 billion rows I was able to load,
but I wasn't able to index them, even after trimming out about 50 million
rows. myisamchk keeps telling me that index 1 has 'too many keys'. Index
one is a primary key using two integers from the table. The total number
of keys in the index would be a fraction of the total rows, so I just
simply don't get what's going on.

I'm just hoping that the InnoDB table will allow the existing records (a
bit less than 4G) with indexes. I plan on loading the InnoDB table using
'LOAD TABLE INFILE' commands against 1 million row chunks of data in tab
demimited files.

It's not fun I assure you. Thanks again!

Tom

Jul 23 '05 #3

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

Similar topics

0
by: Morten Gulbrandsen | last post by:
Dear MySQL developers, Could some experienced Database developer please take a look at this ? It is supposed to be plain SQL2. How can it be coded under MySQL Especially all referential...
2
by: Marco | last post by:
MAX_ROWS can be used in conjunction with AVG_ROW_LENGTH to (a) limit the size of a HEAP table (b) overcome MyISAM's default 4GB limit Are there *any other ways* in which MySQL uses MAX_ROWS...
1
by: Craig Stadler | last post by:
mySQL (4.0.20a win32), dual amd2200 machine, 4 gigs of DDR ECC memory. I have a series of 33 tables, identical in structure : (field names shortened) CREATE TABLE `dbtable1` ( `FS`...
25
by: Jason | last post by:
Hi, below is example code which demonstrates a problem I have encountered. When passing a number to a function I compare it with a string's size and then take certain actions, unfortunately during...
1
by: Fábio Emilio Costa | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm working in a project in C++ using MySQL C API (Win98/Dev-C++ 4.9.9.8/MySQL DevPak/MySQL 4.1.13) and I want to know if it's possible to...
4
by: Good Man | last post by:
Hi there I have a database with about 20 or so tables, maybe a few thousand rows in each. I am starting to do more complex things with my insertions etc, and I want to start to use...
2
by: crescent_au | last post by:
I've read articles and postings about MyISAM vs InnoDB but I am still a bit unsure about which storage engine to use for my new project. I am developing a website in PHP/MySQL, which includes...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
77
by: borophyll | last post by:
As I read it, C99 states that a byte is an: "addressable unit of data storage large enough to hold any member of the basic character set of the execution environment" (3.6) and that a byte...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.