I replied below

----- Original Message -----
From: "Roger Baklund" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 3:24 PM
Subject: Re: Bug related to large tables and it's indexes on Win2k


| * Jared Richardson
| [...]
| > CREATE TABLE IcAlias(
| >    IcAliasID BIGINT NOT NULL PRIMARY KEY,
| >    mID VARCHAR(255) NOT NULL,
| >    IcEntityID BIGINT NOT NULL,
| >    IcTypeID SMALLINT NOT NULL,
| >    IcDupSortID VARCHAR(255) NOT NULL,
| >    INDEX mIDIdx (mID),
| >    INDEX IcTypeIDIdx (IcTypeID),
| >    INDEX IcEntityIDIdx (IcEntityID),
| >    INDEX IcDupSortIDIdx (IcDupSortID))
| >    AVG_ROW_LENGTH=4096 MAX_ROWS=4294967295;
|
| Why do you use AVG_ROW_LENGTH=4096? It seems to me the max record
| length is 528...?
|

According to the MySql docs, the max table size is AVG_ROW_LENGTH * MAX_ROWS

We were trying to ensure the maximum amount of growth... this table can grow
very very large....

We'll try an import with only 528 AVG_ROW_LENGTH and see what happens.

| Also, you do normally not want an index on 255 characters of a
| column... have you considered using "INDEX mIDIdx (mID(10))" and
| "INDEX IcDupSortIDIdx (IcDupSortID(10))" or similar?
|

Got a build going with that right now! :)  Thanks




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to