?
Solved

600 bytes composite index limit

Posted on 2004-04-04
8
Medium Priority
?
1,151 Views
Last Modified: 2012-05-04
I'm getting this error when I try to create index. I know reducing the column size or number of columns would workaround the problem. but I want to know is there anyway we can increase the limit, is this something to do with page size?

we are using 12.5 server and using 2k page size.

Thanks!
0
Comment
Question by:kennethxu
  • 4
  • 2
  • 2
8 Comments
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10753313
Size of the composite index is either 31 columns or 600 bytes. I do not think this limitation has anything to do with pagesize.

Perhaps, Bret from Sybase can confirm that.

Regards-
0
 
LVL 14

Author Comment

by:kennethxu
ID: 10753663
can anybody please, if you have a sybase server with *more* then 2k page size, try to create a table with column a varchar(350) and b varchar(350), then create an index on (a,b). and let me know the result.
thanks!
0
 
LVL 13

Expert Comment

by:alpmoon
ID: 10763110
I agree with Namasi, I don't think that it is related to page size. Actually an index with 700 bytes key length would be a really an expensive one especially for updates. I think you should avoid to create it anyway. If table is very small table scan would be OK, otherwise just use the first column.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10765320
Yes. Agree with alpmoon that it would be expensive for updates. May be you can consider adding an identity field to the table and make that the primary key and add non-clustered indexes on each varchar(350) fields.

regards-
0
 
LVL 14

Author Comment

by:kennethxu
ID: 10765932
I agree too, the only thing is the table schema was given by bea weblogic server. I don't know what bea is doing on this. This looks like obvious mistake, but they yet made it.
0
 
LVL 14

Author Comment

by:kennethxu
ID: 10766096
I'll leave it open for a day to two to see if anybody has a 12.5 server to try it out and confirm. then I'll award points.
0
 
LVL 13

Accepted Solution

by:
alpmoon earned 2000 total points
ID: 10819304
Hi,

I came accross information about maximum index row size in Reference Manual:

Logical page size    Index column size limit
2K                           600
4K                          1250
8K                          2600
16K                        5300

So, you can create your index with 4K or 8K page size according to Reference Manual.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Applications for our next round of the Experts Exchange Scholarship Contest are starting to roll in. It made us wonder what our past winners are up to these days. Here's a look at what four winners experienced with the contest and what they're doing…
This holiday season, we’re giving away the gift of knowledge—tech knowledge, that is. Keep reading to see what hacks, tips, and trends we have wrapped and waiting for you under the tree.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question