Solved

600 bytes composite index limit

Posted on 2004-04-04
8
1,125 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sybase How do we check ASE memory in MB or Gb ? 3 2,977
Agreggate sums in sql 1 523
Sybase Customized sp_thresholdaction 2 671
performance measure of  running SSIS package 4 202
This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.

823 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