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:
</code> 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 </code>