How to create table order by index in informix -


how can table index order in informix ? means when insert new element first order , insert element. in oracle can this:

organization index 

is there equivalent in informix ?

no, there no similar resource @ informix.

the option have reorder physical rows based on 1 index time time setting cluster alter index statement. (setting index not cluster quick.)

but there limitations in using it. main limitation, in opinion is:

  • cannot done online; means, need exclusive access during operation.
    if table big, take while.

quote source: ibm® informix® 12.10 index-type options

cluster option usage

you cannot specify cluster option , online keyword in same statement. in addition, secondary-access methods (such r-tree) not support clustering. before specify cluster index, sure index uses access method supports clustering. create cluster index statement fails if cluster index exists on same table.

create cluster index c_clust_ix on customer (zipcode);

this statement creates index on customer table , physically orders rows according postal code values, in (by default) ascending order.

if cluster option specified , fragments exist on data, values clustered within each fragment, , not globally across entire table. if create cluster index statement includes compressed keyword storage option, database server issues error -26950. create cluster index supports compression requires 2 steps:

use create cluster index statement define cluster index no index compression. call sql administration api task( ) or admin( ) function 'index compress' argument compress existing cluster index.

you cannot use cluster option on forest of trees index.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -