This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
admin:grids:home [2010/05/11 19:14] 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. | ||
| - | ==== 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. | ||
| - | |||
| - | ===== 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}} | ||