Creating Adaptive Server Iq Indexes; The Create Index Statement - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Creating Adaptive Server IQ indexes

Creating Adaptive Server IQ indexes

The CREATE INDEX statement

Examples
138
Because indexes are compact, more data can be kept in memory for
subsequent queries, thereby speeding throughput on iterative analysis.
Tuning is data-dependent, allowing data to be optimized once for any
number of ad hoc queries.
You can create a column index explicitly using either the
statement or Sybase Central. These two methods are discussed in the sections
that follow.
To create an Adaptive Server IQ column index, use this syntax:
CREATE [ UNIQUE ] [ index-type ] INDEX index-name
... ON [ owner .] table-name
... ( column-name )
... [ { IN | ON } dbspace-name ]
... [ NOTIFY integer ]
If you do not specify an index-type, Adaptive Server IQ creates an
Several front-end tools create an
The first example creates a High_Non_Group (
the
column of the
ship_date
CREATE HNG INDEX ship_ix
ON dbo.sales_order_items (ship_date)
The second example creates a Low_Fast index called
column of the
region
sales_order
CREATE LF INDEX sales_order_region
ON dbo.sales_order (region)
By default, after every 100,000 records are inserted and loaded into indexes,
you receive a progress message. To change the number of records, specify the
option of
NOTIFY
CREATE INDEX
.
0
index automatically for this reason.
HG
) index called
HNG
table.
sales_order_items
sales_order_region
table.
. To prevent these messages, specify
CREATE INDEX
index.
HG
on
ship_ix
on the
NOTIFY

Advertisement

Table of Contents
loading

Table of Contents