Question : Sybase IQ HG Index

Hi,

What are the performance benefits of a HG Index in Sybase IQ? From my understanding, it is used for columns with a high number of distinct values and can consume 80 - 120% the size of the raw data for the column...

So what would be the benefit in using this index and how does it store data internally?

THANKS

Answer : Sybase IQ HG Index

Nope, HG is not a bitwise. That's the LF and (sorta) the HNG.

You do indeed have extra pages due to the B tree, that's why it takes up so much space compared to the other types. But because of the G-array for duplicates, the B-tree only indexes the unique/distinct values in the column, so it's not as expensive as a traditional B-tree. Also, the B-tree leaves only have to be large enough to fit a pointer back to the FP, they don't store the actual data, so that's another space saving.
Random Solutions  
 
programming4us programming4us