This is an old revision of the document!
Delcare nodes using the same DDL statements for ENVRIONMENT, DATABASE and TABLE.
create environment "myenv"
max_threads 2
node "node01"
host "Localhost"
port 7555
environment "\\cust01\node01\simplegrid\node01"
partitioned
node "node02"
host "Localhost"
port 7555
environment "\\cust01\node02\simplegrid\node02"
partitioned
in "simplegrid.xml"
with delete;
create database "mydb" node "NODE1" type FLATFILE index_directory "idx\SIMPLE1_" /* directory and index prefix */ node "Node2" type FLATFILE index_directory "idx\simple_2 in "odx.xml";
create table household
node node01
physical "dat\househould01.dat"
partition_by "STATE in ('NY', "PR', ...
and ZIP between '01000' and '49999'
node node02
physical "dat\househould02.dat"
partition_by "STATE in ('CA', "AL', ...
and ZIP between '49999' and '99999'
In an Omnidex Grid, each noee Indexes can be built concurrently for all nodes, or individually for each node.
- To update indexes for all nodes:
- To update indexes for an individual node:
os> odxsql odxsql> connect simplegrid; odxsql> update indexes; odxsql> disconnect; odxsql> connect simplegrid; odxsql> select count(*) from households;
os>odxsql odxsql> connect simplegrid[node01]; odxsql> update indexes; odxsql> disconnect; odxsql> connect simplegrid[node2]; odxsql> update indexes; odxsql> disconnect; odxsql> connect simplegrid; odxsql> select count(*) from households;
Omnidex will process SQL statements on an Omnidex Grid whether or not indexing is installed.
Omnidex will use as few nodes as possible, talking advantage of partition qualifers in the criteria.
Omnidex will apply as much optimization as possible on each required node.
Omnidex will complete the query on the grid controller.
create table household
node node01
physical "dat\..."
partitioned_by "STATE in ...
and ZIP between '01000' and '49999'"
node node02
physical "data\.."
partitioned_by 'STATE in ...
{
househould char(12) distinct,
address character(5),
city char(28),
state char(2) distinct,
zip char(5) distinct,
country, char(2),
constraint ...
)
in "odx.xml";