on 07-11-2013 5:35 PM
Sybase version: Adaptive Server Enterprise/12.5.4/EBF 15446 ESD#8/P/Solaris AMD64/OS 5.10/ase1254/2105/64-bit/OPT/Sat Mar 22 04:05:46 2008
Good afternoon,
I have a question about sp_spaceused information.
For a table, sp_spaceused returns
rowcount reserved data index unused
REPOSITORY_SPACE 2875956 11855104 KB 140596 KB 11710208 KB 4300 KB
The table has an index on a NUMERIC field.
This table has a field of type IMAGE
I don't understand why the space used by my index is so huge compared to the data size.
I even drop the index, run reorg rebuild, delete statistics, sp_flushstats but the values don't change.
Could anyone explain me the figures and why my index size is still present.
Thank you
Simon
Thanks all for your valuable information.
After reading carefully Sybase info center, it becomes clear as water.
Thanks all and have a nice week-end.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to add what has been already said here, if you look in sysindexes table in the same database you should be able to find a row for your table with indid 255 which represents the image data storage structure.
Look at indid column description at the link below.
warm regards,
sudhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon
It could be because some of your data has the type "text" and in ASE12.5 sp_spaceused provides information about the space used for text data as index_size.
Vincent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have in fact already given the answer yourself
Data in text/image columns is, from a space accounting point of view, seen as an 'index', even though it actually is not an index. This could well explain why you're seeing those numbers.
To get confirmation, run "sp_spaceused REPOSITORY_SPACE, 1", which will list the space used per 'index'. Text/image data is displayed as an index named "t" followed by the table name, so in your case I would expect it to be named "tREPOSITORY_SPACE".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.