Solved

600 bytes composite index limit

Posted on 2004-04-04
8
1,120 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 500 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
 
LVL 14

Author Comment

by:kennethxu
ID: 10819631
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now