* [[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 Indexing ====== ===== Indexing Concepts ===== [[admin:indexing:concepts:home|Overview]] | **[[admin:indexing:concepts:criteria|Criteria]]** | [[admin:indexing:concepts:joins|Joins]] | [[admin:indexing:concepts:aggregations|Aggregations]] | [[admin:indexing:concepts:ordering|Ordering]] | [[admin:indexing:concepts:retrieval|Retrievals]] ---- ==== Criteria ==== === Using a Single Index === The most common reason to use an index is to help identify rows based on a unique value, such as a Customer ID or an Email address. All relational databases have this capability, and Omnidex does as well. Omnidex also allows you to put these kinds of indexes on raw data files or delimited files - something they don't inherently have. === Using Multiple Indexes === Relational databases also allow you to put an index on a non-unique value, such as a State or Zip code. Omnidex does as well, but Omnidex goes an important step further. Omnidex allows multiple indexes to be used in the same query. If your query searches for all people in a particular State or Zip Code, with a particular Name and several other criteria, Omnidex will intersect the results of multiple index searches to identify the appropriate rows. Many relational databases pick an index and then begin to retrieve rows from the database. It is much more efficient to intersect the results of multiple index searches, and this is one of the keys of Omnidex's speed. Omnidex can also intersect the results of multiple indexes across multiple tables. This is a very powerful feature of Omnidex because table joins can be one of the most time-consuming operations in databases. Omnidex can qualify in one table, join within the indexes to the next table and then continue qualifying from that point on. Omnidex differs from relational databases in that you tend to index most or all of the columns in your tables. They are highly compressed and can be built extremely quickly so that you can afford to have so many indexes. The queries truly benefit from this approach. === When to Avoid Indexes === One might think that indexes are always the best way to process all criteria. Depending on the type of query, this may or may not be true. When you qualify a large number of rows in a table using an index, you may slow down the query. Using an index to find a single row in a database takes a few disk reads to search the index and then a disk read to find the row in the table. This small handful of disk reads is a lot better than reading the whole table without an index. But when you have to read a large percentage of the rows in a table, the overhead of using the index isn't justified. A sequential table scan can read multiple rows with each disk read. The exact number varies, but if a table scan reads 100 rows with each disk read, then it could read 1,000,000 rows in only 10,000 disk reads. That's fairly efficient. Accessing all of those rows with an index would take 1,000,000 disk reads, plus the overhead of searching the index. That's fairly inefficient. The general rule of thumb is to use an index when you are retrieving less than 1% of the database. Omnidex automatically follows this rule of thumb, and you may find that some queries don't use indexes for this very reason. Omnidex also allows this threshold to be configured. A setting called the QUALIFICATION_THRESHOLD is set to 1% by default, but can be [[admin:optimization:config:thresholds|changed]] if needed. ==== ==== The [[admin:indexing:strategies:criteria|following article]] explains basic strategies for indexing criteria. ===== ===== **[[admin:indexing:concepts:home|Prev]]** | **[[admin:indexing:concepts:joins|Next]]** ====== Additional Resources ====== See also: {{page>:admin:indexing:see_also&nofooter&noeditbtn}} {{page>:bottom_add&nofooter&noeditbtn}}

 
Back to top
admin/indexing/concepts/criteria.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