* [[topbar |Table of Contents]] * [[intro:overview:what|Introduction]] * [[install:home|Installation]] * [[install:editions|Product Editions]] * [[install:requirements|System Requirements]] * [[install:platforms|Supported Platforms]] * [[install:guides:home|Installation Guides]] * [[install:licensing:home|Licensing]] * [[install:releases:home|Release Notes]] * [[admin:home|Administration]] * [[admin:admin:home|Administration Basics]] * [[admin:admin:architecture:home|Omnidex Architecture]] * [[admin:admin:applications:home|Building Applications]] * [[admin:basics:home|Omnidex Fundamentals]] * [[admin:basics:environments:home|Omnidex Environments]] * [[admin:basics:sqlengine:home|Omnidex SQL Engine]] * [[admin:basics:updates:home|Omnidex Updates]] * [[admin:basics:network:home|Network Services]] * [[admin:indexing:home|Omnidex Indexing]] * [[admin:indexing:concepts:home|Indexing Concepts]] * [[admin:indexing:indexes:home|Indexing Options]] * [[admin:indexing:creation:home|Index Creation]] * [[admin:indexing:strategies:home|Indexing Strategies]] * [[admin:indexing:activecounts:home|ActiveCounts]] * [[admin:indexing:powersearch:home|PowerSearch]] * [[admin:indexing:autocomplete:home|AutoComplete]] * [[admin:indexing:text:home|Omnidex Text]] * [[admin:features:home|Omnidex Features]] * [[admin:features:snapshots:home|Omnidex Snapshots]] * [[admin:features:grids:home|Omnidex Grids]] * [[admin:features:rollups:home|Rollup Tables]] * [[admin:features:geo:home|Geographic Searches]] * [[admin:features:expressioncols:home|Expression Columns]] * [[admin:features:segments:home|Omnidex Segments]] * [[admin:features:attach:home|Attaching Data]] * [[admin:features:export:home|Exporting Data]] * [[admin:optimization:home|Optimizing Queries]] * [[admin:optimization:plans:home|Query Plans]] * [[admin:optimization:caches:home|Dynamic Caches]] * [[admin:optimization:config:home|Configuring Omnidex]] * [[integration:home|Integration]] * [[integration:rdbms:home|Relational Databases]] * [[integration:rdbms:oracle:home|Oracle]] * [[integration:rdbms:sqlserver:home|SQL Server]] * [[integration:rdbms:mysql:home|MySQL]] * [[integration:rdbms:odbc:home|Generic ODBC]] * [[integration:rawdata:home|Raw Data Files]] * [[integration:rawdata:fixed:home|Fixed-length Files]] * [[integration:rawdata:delimited:home|Delimited Files]] * [[integration:rawdata:ost:home|Standalone Tables]] * [[dev:home|Development]] * [[dev:sql:home|Omnidex SQL]] * [[dev:sql:overview|Overview]] * [[dev:sql:statements:home|Statements]] * [[dev:sql:functions:home|Functions]] * [[dev:sql:examples:home|Examples]] * [[dev:connections:home|Connection Strings]] * [[dev:odbc:home|ODBC Interface]] * [[dev:jdbc:home|JDBC Interface]] * [[dev:debugging:home|Logging/Debugging]] * [[programs:home|Programs]] * [[programs:odxsql:home|OdxSQL]] * [[programs:odxnet:home|OdxNet]] * [[appendix:home|Appendix]] * [[dev:sql:home|Omnidex SQL]] * [[dev:sql:statements:home|Statements]] * [[dev:sql:functions:home|Functions]] * [[dev:sql:examples:home|Examples]] * [[http://www.omnidex.com/download/|Downloads]] * [[support:home|Support]]

~~NOTOC~~ {{page>:top_add&nofooter&noeditbtn}} ====== Administration: Omnidex Features ====== ===== Omnidex Grids ===== [[admin:features:grids:home|Overview]] | **[[admin:features:grids:partitions|Partitioning Scheme]]** | [[admin:features:grids:distribution|Distribution Plan]] | [[admin:features:grids:creation|Grid Creation]] ---- ==== Determining a Partitioning Scheme ==== Omnidex Grids provide high performance by allowing a large database to be partitioned into a set of smaller databases called //grid nodes//. One distinct advantage of this is that some queries can be resolved to a smaller subset of nodes. When Omnidex optimizes a query, it may be able to determine that the query can be resolved by accessing the indexes and data on only a few of the nodes. This can produce significant improvements in performance and greatly reduce the load on the servers. For example, if a database is partitioned into ten nodes representing ten geographic regions, then queries which request rows from only one region can be limited to the single node containing that region. This means that only 10% of the data and indexes must be evaluated, and 90% of the data and indexes can be avoided. The partitioning scheme used in an Omnidex Grid determines how the database will be distributed into the grid nodes. There are several questions that should be answered to determine the partitioning scheme. === 1. What criteria should be used to partition the database? === Generally, the best place to start is to examine the queries. If queries are logged over a period of time and analyzed, there are generally patterns to the criteria. In many databases, most queries begin with criteria such as geography, client IDs, product IDs, or dates. If one set of criteria is common to most queries, then that becomes a logical candidate for the //partition qualifier//. For example, many databases are partitioned by a geographic region code, a state code or a zip code. Queries that provide criteria against these geographic codes can then be directed solely to those //grid nodes// that contain those rows. There can be other reasons for choosing a //partition qualifier//. Some databases are segmented using a client ID or a product ID, and all queries will be narrowed to that particular client or product. Partitioning the database by these IDs not only speeds the queries, but it also makes it possible to perform maintenance on individual clients or products because they are isolated into a specific node. Other databases provide a revolving view of recent data, such as the last 12 months or the last 30 days. In these cases, partitioning by the month or the day allows old data to be archived and new data to be incorporated without causing maintenance on the entire database. The application is unaware of the partitioning scheme. It simply sends queries and expects the results to come back quickly. This means that it is possible to alter the partitioning scheme without changing the application. Repartitioning a database can still be a large endeavor, but it can be scheduled by the database administrators without having to schedule development resources. === 2. What is the recommended quantity and size of grid nodes? === Generally, //grid nodes// contain between 10 million and 50 million rows per table. This is not a rule; instead, it is representative of the performance and operational needs for most databases. Many Omnidex applications want to obtain counts from the database for web applications, usually with a target of 1-2 second performance. These targets can usually be reached with nodes containing 10-50 million rows; however, this depends greatly on the quality of the hardware, the number of concurrent processes and the nature of the queries. Generally, Omnidex Grids contain somewhere between 4 and 25 nodes. Again, this is not a rule, but is representative of most databases. Having a large number of nodes often means that the individual nodes are smaller, and queries that are restricted to individual nodes are quite fast. However, not all queries can be restricted to an individual node. Some queries may have to be processed against the entire database, and therefore on all nodes. These queries will still benefit from concurrently processing on parallel processors; however, the results still must be transferred to the //grid controller// and reassembled into the final result set. If there are too many nodes, the overhead of these types of queries can become excessive. A quantity of 4-25 nodes provides the opportunity for great performance gains without too much work reassembling the results on the controller. === 3. How are referential constraints handled, such as primary and foreign keys? === Relational databases usually contain parent-child relationships between the tables, enforced through primary and foreign key constraints. When a parent table is partitioned, it is important that the corresponding child tables (and further descendant tables) be partitioned to maintain referential integrity. For example, if a customer table is partitioned by geography, it is important that the corresponding child tables, such as orders or mailings, be partitioned by the corresponding foreign key constraint so that each customer’s entire parent-child family is located on the same node. === 4. How are "distinct" operations and "group by" operations handled? === Some queries request distinct counts of a particular column, or aggregate data based on one or more columns. These queries warrant some additional attention to insure optimal performance. If these queries require processing on more than one node, the //grid controller// may have to do a significant amount of work to reassemble and re-aggregate the results. What matters most is whether the columns involved share values across multiple nodes of the grid. For example, if a customer table is partitioned by geography, it is likely that the values of some columns will be unique to a node, such as the primary key, the household ID and perhaps the state or zip code fields. It is likely that the values of other columns will not be unique to a node, such as name or city columns. If a query requests a count of the distinct households, Omnidex can recognize that the values for this column are not shared between nodes. This means that the //grid controller// can simply request a count of distinct households from each node and then add them together. The same strategy will not work for the name or city column since names and cities are shared across multiple nodes. If the //grid controller// summed the count of distinct names or cities from each node, it would have an inflated count that reflects duplicate values between the nodes. To address this, the //grid controller// must request the actual distinct values from each node and then re-aggregate the data to obtain the proper counts. This example illustrates that the performance is affected by the number of distinct values or aggregations that are returned from each node. A count of the distinct names will take longer than a count of the distinct gender codes. Each node may have to return thousands of names to the //grid controller//, but each node would only have to send two gender codes. With this in mind, the database should be partitioned to avoid allowing high cardinality columns used in distinct counts or aggregations to have duplicate values across multiple nodes. === 5. Is there support available for choosing the best partitioning scheme? === DISC has a team of consultants that are available to work with you on the best design for your Omnidex Grid. Please contact us if we can be of any service. ==== What's Next? ==== Now that you have determined your partitioning scheme, it is time to determine your [[admin:features:grids:distribution | distribution plan ]]. **[[admin:features:grids:home|Prev]]** | **[[admin:features:grids:distribution|Next]]** ====== Additional Resources ====== {{page>:admin:features:see_also&nofooter&noeditbtn}} {{page>:bottom_add&nofooter&noeditbtn}}

 
Back to top
admin/features/grids/partitions.txt · Last modified: 2016/06/28 22:38 (external edit)
 
 
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0