Differences

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

Link to this comparison view

Both sides previous revision Previous revision
admin:grids:home [2010/07/09 17:38]
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 environment ​    "​SIMPLE_ENV"​ 
-  max_threads ​         2 
-  node                 "​NODE01"​ partitioned 
-  node                 "​NODE02"​ partitioned 
-  in                   "​SIMPLEGRID.XML"​ 
-  with                 ​delete;​ 
- 
-create database ​        "​SIMPLE"​ 
-  node                  "​NODE01"​ 
-    type                flatfile 
-    index_directory ​    "​IDX\SIMPLE1_"​ 
-  node                  "​NODE02"​ 
-    type                flatfile 
-    INDEX_DIRECTORY ​    "​idx\simple_"​ 
- 
-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>​ 
- 
-==== 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 partitioned flat of delimited data files using Omnidex SQL. 
- 
-  odxsql> export (select_statement) to filename 
- 
-  odxsql> export select * from table1 to table1.out; 
- 
-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.1278697091.txt.gz ยท Last modified: 2012/10/26 14:46 (external edit)