dbTalk Databases Forums  

Index - max key length is 1024 bytes

mailing.database.myodbc mailing.database.myodbc


Discuss Index - max key length is 1024 bytes in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
javabuddy
 
Posts: n/a

Default Index - max key length is 1024 bytes - 08-12-2005 , 01:27 PM






Thanks

But still I can't get the part where my column size totals to 560, but MySql complaining that I have exceeded 1024. Did I went anywhere wrong???

- Gana.


----------------------------------------------------------------------------------------------------
People are conversing... without posting their email or filling up their mail box. ~~1123871242499~~
roomity.com http://roomity.com/launch.jsp No sign up to read or search this Rich Internet App
----------------------------------------------------------------------------------------------------


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Devananda
 
Posts: n/a

Default Re: Index - max key length is 1024 bytes - 08-12-2005 , 01:47 PM






javabuddy wrote:
Quote:
Thanks

But still I can't get the part where my column size totals to 560, but MySql complaining that I have exceeded 1024. Did I went anywhere wrong???

- Gana.


----------------------------------------------------------------------------------------------------
People are conversing... without posting their email or filling up their mail box. ~~1123871242499~~
roomity.com http://roomity.com/launch.jsp No sign up to read or search this Rich Internet App
----------------------------------------------------------------------------------------------------


What character set are you using? The default (latin1) is 1 byte per
char, but some different character sets are 2 or 3 bytes per char (for
example, unicode / UTF8 is 3 bytes). I can't find where this is
documented in the manual, but it is discussed slightly here:

http://dev.mysql.com/doc/mysql/en/char.html
http://dev.mysql.com/doc/mysql/en/charset-unicode.html


HTH,
Devananda vdv

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Keith Ivey
 
Posts: n/a

Default Re: Index - max key length is 1024 bytes - 08-12-2005 , 02:46 PM



javabuddy wrote:

Quote:
But still I can't get the part where my column size totals to 560, but MySql
complaining that I have exceeded 1024. Did I went anywhere wrong???
Are you sure you've thought your index through correctly and considered how
MySQL will use it? What sort of query would such an index be useful for? In
most circumstance it makes little sense to index more than a prefix of a long
VARCHAR or TEXT field, and indexing nine fields at once will only make sense if
you use all nine in your query.

Maybe you want a FULLTEXT index?

--
Keith Ivey <keith (AT) smokefreedc (DOT) org>
Smokefree DC
http://www.smokefreedc.org
Washington, DC

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.