Partitioned files are available directly through c-treeACE SQL. As partitioned files rely on a key value to partition the data, the option is part of the CREATE INDEX statement. By including the STORAGE_ATTRIBUTES clause with the PARTITION option, the file will be rebuilt to enable partitioned support. All other operations on the file will continue as usual.
Note: Partitioned file support requires a custom build of c-treeACE SQL with the partition rule compiled from the ctpart.c module.
c-treeACE SQL CREATE INDEX Syntax
CREATE [ UNIQUE ] INDEX index_name
ON table_name
( {column_name [ASC | DESC]} [, ...])
[ STORAGE_ATTRIBUTES 'attributes' ];
New Argument:
STORAGE_ATTRIBUTES 'attributes'
A quoted string that specifies index attributes that are specific to c-treeACE SQL indexes. c-treeACE SQL interprets the following attribute strings:
A detailed analysis of how partitioned files were opened and queried by various SQL constructs was taken. Many enhancements were identified that could greatly improve performance when multiple physical files are taken into consideration:
c-treeACE SQL defaults to three samplings. The following configuration keywords change this behavior:
The ability to add and drop columns for Partitioned Files via an ALTER TABLE (either via SQL or c-treeDB) has been added. Previously an invalid argument error was returned (CTDBRET_INVARG) when attempting this operation. For very large data sets this could take time, as currently, every record is visited to update based on the new schema. In addition, if indexes require a rebuild, this will require additional time.