Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:grids:home [2010/05/11 20:16]
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 ====== 
-Grids are an Omnidex feature that allows very fast retrieval on large volume data. 
  
- 
-Partitioning the SIMPLE database 
- 
-Upartitioned tables: countries, states, genders 
- 
-Partitioned tables: ​  ​Household 
-  Households partitioned by STATE 
-  INDIVIDUALS partitioned by HOUSEHOLD, correlated to the HOUSEHOLDS table. 
- 
- 
-Partition by  
- state plus first initial of last name 
- 
-===== Grid Recommendations ===== 
-  ​ 
-The dominant parent dictates the partitioning approach used for all the children. 
- 
-Every query that comes in to the grid controller is only sent to the nodes that are needed to satisfy the query. 
-==== Creating an Omnidex Grid ==== 
-An Omnidex Grid Environment File is created using the same statements as a standard Omnidex Environment:​ 
-  * CREATE ENVIRONMENT 
-  * CREATE DATABASE 
-  * CREATE TABLE 
- 
-However, there are additional clauses that are declared. 
- 
-There is a single Omnidex Environment catalog. 
- 
-<​code>​ 
-create environmnet "​SIMPLE_ENV"​ 
-  MAX_THREADS ​     2 
-  NODE             "​NODE01"​ PARTITIONED 
-  NODE             "​NODE02"​ PARTITIONED 
-  IN               "​SIMPLEGRID.XML"​ 
-  WITH             ​DELETE;​ 
- 
- 
-create environment ​     "​simple_env"​ 
-  max_threads ​          2 
-  node                  "​NODE01"​ 
- 
-create database ​        "​SMIMPLE"​ 
-  NODE "​NODE01"​ 
-    TYPE                FLATFILE 
-    INDEX_DIRECTORY ​    "​IDX\SIMPLE1_"​ 
-  NODE "​NODE02"​ 
-    TYPE                FLATFILE 
-    INDEX_DIRECTORY ​    "​idx\SIMPLE2_"​ 
- 
-CREATE TABLE  "​HOUSEHOLDS"​ 
-  NODE "​NODE01"​ 
-  PHYSICAL ​    "​DATA\HOUSEHOLDS01.DAT"​ 
-  PARTITION_BY ​   "STATE IN ('​NY',​ '​PR',​ '​MA', ​ 
-                             '​PA',​ '​DE'​) AND 
-                  zip BETWEEN '​01000'​ AND '​349999'​ " 
- 
-   NODE "​NODE02"​ 
-     ​PHYSICAL ​   "​DAT\HOUSEHOLDS02.DAT"​ 
-     ​PARTITION_BY "STATE IN ('​IN',​ '​MI',​ '​IA',​ '​WI',​ '​MN',​ '​SD',​ '​ND'​) AND 
-                  ZIP BETWEEN '​46000'​ AND '​99999'"​ 
-   ( <COLUMN DECLARATIONS>​ ) 
-</​code>​ 
-</​code>​ 
- 
-==== Which Tables Get Partitioned ==== 
-=== Partition the main tables and their children === 
-=== How many partitions === 
-use more partitions when most queries contain the partition qualifier. 
- 
-user fewer partitions when most queries do not containe the partition qualifier. 
- 
-Consider using partitions for archived data. 
- 
-Generally best to have a CPU core available for each partition. 
- 
-Rule of thumb: start with 4-8 partitions and adjust accordingly. 
- 
-==== Partitioning into an Omnidex Snapshot ==== 
- 
-1. Export the data into the partitioned flat of rdelimited data files using Omnidex SQL. 
- 
-  odxsql> export (select_statement) to filename 
- 
-2. Export the data into partitioned data files using a relational database or an ETL tool. 
- 
-==== Partitioning an RDBMS ==== 
- 
-===== Grid FAQs ===== 
-==== Why Partition if the Grid Controller is going to touch all the nodes? ===== 
- 
-Since some queries do get localized to some nodes, that sames time and even if a query has to touch all nodes, the processing of multiple smaller queries is still better than the processing of the single large query. 
- 
- 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
admin/grids/home.1273608984.txt.gz ยท Last modified: 2012/10/26 14:46 (external edit)