
Using join indexes
158
The index remains unavailable until all steps are complete. However, you can
adjust the order of some steps, depending on the needs of your site:
•
You can combine steps 1 and 2 by defining relationships when you create
the table.
•
You can load the data either before or after you create the join index. If you
load the data into the underlying column indexes after you create the join
index, you must perform the synchronization step.
Privileges needed to create a join index
You must be the owner of a table or the DBA to create, alter, or synchronize a
join index that includes that table. If you are not the DBA, you need to be the
owner of the table and have RESOURCE authority in order to create a join
index.
For details on inserting and deleting data, see Chapter 5, “Moving Data In and
Out of Databases” For complete syntax of the
CREATE TABLE
,
ALTER TABLE
,
LOAD TABLE
,
INSERT INTO
, and
SYNCHRONIZE
commands, see the Adaptive
Server IQ Reference Manual. The sections that follow give details on other
steps in creating a join index.
Synchronizing join indexes
The data in join index tables must be synchronized before you can use a join
index. Synchronization ensures that the data is loaded in the correct order for
the joins.
Synchronization occurs automatically when you create the join index.
Synchronizing before completing the transaction that loads or inserts data also
makes tables available immediately for all readers. Once data is loaded,
however, you must synchronize the join index explicitly, with one exception:
the join index is synchronized automatically when changes are made to the top
table of the join hierarchy.
To synchronize explicitly, issue the following command:
SYNCHRONIZE JOIN INDEX [
join-index-name [, join-index-name]
If you omit the index names, Adaptive Server IQ synchronizes all join indexes.
Summary of Contents for Adaptive Server IQ 12.4.2
Page 1: ...Administration and Performance Guide Adaptive Server IQ 12 4 2 ...
Page 16: ...xvi ...
Page 20: ...Related documents xx ...
Page 40: ...Compatibility with earlier versions 20 ...
Page 118: ...Troubleshooting startup shutdown and connections 98 ...
Page 248: ...Importing data by replication 228 ...
Page 306: ...Integrity rules in the system tables 286 ...
Page 334: ...Cursors in transactions 314 ...
Page 396: ...Users and permissions in the system tables 376 ...
Page 438: ...Determining your data backup and recovery strategy 418 ...
Page 484: ...Network performance 464 ...
Page 500: ...System utilities to monitor CPU use 480 ...
Page 514: ...Characteristics of Open Client and jConnect connections 494 ...
Page 536: ...Index 516 ...