Differences

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

Link to this comparison view

admin:indexing:concepts:ordering [2011/01/17 22:42]
els
admin:indexing:concepts:ordering [2016/06/28 22:38]
Line 1: Line 1:
-{{page>:​top_add&​nofooter&​noeditbtn}} 
  
-====== Administration:​ Indexing Strategies ====== 
- 
-===== 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]] 
- 
----- 
- 
-==== Ordering ==== 
- 
-The principles of indexing an ORDER BY clause are very similar to the principles of optimizing an aggregation. ​ If an Omnidex index contains all of the columns in an ORDER BY clause, then the index pointers can be retrieved. ​ This can avoid the cost of a large sort.  ​ 
- 
-Many applications do paging as part of their presentation. ​ Paging means that you look at the first page, then the second page and so forth. ​ Indexing can especially help in this situation. ​ It is especially painful to sort a large collection of rows only to display the first page or the second page.  Accessing them in sorted order using an index prevents this need to sort and can dramatically improve the performance of an application. 
- 
-As with aggregations,​ sometimes an index is not the fastest approach to order data.  Using an index for ordering requires scanning the index from the beginning to the end.  If the criteria isolates only a small number of rows, it would be faster to simply retrieve the rows and order  them directly, than to scan millions of entries in an index. ​ Omnidex uses the same AGGREGATION_THRESHOLD discussed in the [[admin:​indexing:​concepts:​aggregations|aggregations section]] to decide when to use an index for ordering. 
- 
-The [[admin:​indexing:​basic:​orderby|following article]] explains basic strategies for optimizing ordering. 
- 
-=====  ===== 
- 
-**[[admin:​indexing:​concepts:​aggregations|Prev]]** | 
-**[[admin:​indexing:​concepts:​retrieval|Next]]** 
- 
-====== Additional Resources ====== 
- 
-See also:  
- 
-{{page>:​admin:​indexing:​see_also&​nofooter&​noeditbtn}} 
- 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
admin/indexing/concepts/ordering.txt ยท Last modified: 2016/06/28 22:38 (external edit)