MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 4th, 1999, 12:58 AM
DanH
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hello:

Is anyone aware of a mysql index limit, and does that apply to just one table, just one database, or both?

Thanks
Dan

Reply With Quote
  #2  
Old October 18th, 1999, 12:17 PM
Robman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I don't have a solution for you but I think I may be experiencing a similar problem.
I've gotten to id 127 and can't seem to insert any more rows. It gives me an error something about Duplicate key....blah blah.
I was wondering myself if there was some way to reset the value. There can't possibly be a limit of 127 rows in a table.

Reply With Quote
  #3  
Old October 18th, 1999, 12:32 PM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Your index is limited by the data type. Robman must be using a tinyint (signed) data type which would limit the max to 127 (signed tinyint ranges from -128 to 127) as a tinyint is only 1 byte in size. By using an unsigned tinyint the range would be 0 to 255. An unsigned smallint max would be 65535 (2 bytes). Mediumint unsigned max would be 16777215 (3 bytes). Int unsigned would be 4294967295 (4 bytes). Big int (8 bytes) unsigned would be 18446744073709551615 (not exactly practical). For most dynamic tables an unsigned mediumint should suffice.

Rod




[This message has been edited by rod k (edited 10-18-99).]

Reply With Quote
  #4  
Old October 18th, 1999, 01:47 PM
Robman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Yep. Rod is correct.
I just came back to answer my own question. I've now changed it to SMALLINT UNSIGNED.
Hopefully I'll remember this if I hit my head on the ceiling again!

Robman

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Index Limit


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT