This is an old revision of the document!


DRAFT

Omnidex Grids

Setting up a Grid Environment

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'

Indexing an Omnidex Grid

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:

  1. Connect to the grid controller
  2. issue the UPDATES INDEXES statement

- To update indexes for an individual node:

  1. connect to the environment and individual node.
  2. connect env[node]

Building Omnidex indexes across all nodes (version 5.1 build 1A and above)

os> odxsql
odxsql> connect simplegrid;
odxsql> update indexes;
odxsql> disconnect;
odxsql> connect simplegrid;
odxsql> select count(*) from households;

Building Omnidex indexes on individual nodes

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 Grid Query Optimization

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.

Flagging Distinct columns in CREATE table

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";
 
Back to top
admin/grid/overview.1273872002.txt.gz ยท Last modified: 2012/10/26 14:46 (external edit)