This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
admin:grid:overview [2010/05/14 20:57] tdo |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| - | ===== Omnidex Grids ====== | ||
| - | ==== Setting up a Grid Environment ==== | ||
| - | |||
| - | Delcare nodes using the same DDL statements for ENVRIONMENT, DATABASE and TABLE. | ||
| - | |||
| - | <code> | ||
| - | 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; | ||
| - | </code> | ||
| - | |||
| - | <code> | ||
| - | 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"; | ||
| - | </code> | ||
| - | |||
| - | <code> | ||
| - | 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' | ||
| - | </code> | ||
| - | ==== 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: | ||
| - | - Connect to the grid controller | ||
| - | - issue the UPDATES INDEXES statement | ||
| - | - To update indexes for an individual node: | ||
| - | - connect to the environment and individual node. | ||
| - | - connect env[node] | ||
| - | ==== Building Omnidex indexes across all nodes (version 5.1 build 1A and above) ==== | ||
| - | <code> | ||
| - | os> odxsql | ||
| - | odxsql> connect simplegrid; | ||
| - | odxsql> update indexes; | ||
| - | odxsql> disconnect; | ||
| - | odxsql> connect simplegrid; | ||
| - | odxsql> select count(*) from households; | ||
| - | </code> | ||
| - | |||
| - | ==== Building Omnidex indexes on individual nodes ==== | ||
| - | <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> | ||
| - | {{page>:bottom_add&nofooter&noeditbtn}} | ||