Benefits Over Traditional Indexes - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

How Adaptive Server
IQ uses indexes
Adding and dropping
indexes

Benefits over traditional indexes

To take advantage of the High_Non_Group index types for columns with
nonintegral numeric data, use the
support up to 254 digits to the left or right of the decimal point. Be aware that
some index types are incompatible, and that creating indexes you don't need
wastes a lot of disk space. Read the sections that follow for details on how to
select an index.
You may also want to define additional indexes on your columns for best
performance. Adaptive Server IQ uses the fastest index available for the
current query or join predicate. If you do not create the correct types of indexes
for a column, Adaptive Server IQ can still resolve queries involving the
column, but response may be slower than it would be with the correct index
type(s).
If multiple indexes are defined on a particular column, Adaptive Server IQ
builds all the indexes for that column from the same input data.
If you discover later that an additional index is needed, you can always add
indexes. However, it is much faster to create all the appropriate indexes before
you insert any data.
You can drop any optional index if you decide that you do not need it. See the
command in the Adaptive Server IQ Reference Manual for more
DROP INDEX
information on dropping indexes. You cannot drop automatically created
indexes using
DROP INDEX
(or the Sybase Central Table Editor) to drop the column, or to
ALTER TABLE
drop the table. The only way to remove an automatically created
by using
(or the Sybase Central Table Editor) to drop the column
ALTER TABLE
or the
or
PRIMARY KEY
Adaptive Server IQ indexes offer these benefits over traditional indexing
techniques:
Index sizes remain small. The entire database can be fully indexed and
made available for ad hoc queries in the same space that would be needed
to store the raw data. Most traditional databases need three times as much
space.
Queries are resolved by efficiently combining and manipulating indexes
on only the relevant columns. This avoids time-consuming table scans.
I/O is minimized, eliminating potential bottlenecks.
CHAPTER 4
or
NUMERIC
DECIMAL
. The only way to remove the default index is to use
constraint, or by dropping the table.
UNIQUE
Adaptive Server IQ Indexes
data types, which
index is
HG
137

Advertisement

Table of Contents
loading

Table of Contents