Skip to main content

Diigo Home

InformIT: MySQL Query Optimization > Using Indexing - The Diigo Meta page

www.informit.com/...article.aspx - Annotated View

Joel Liu's personal annotations on this page

joel
Joel bookmarked on 2009-06-29 Mysql index Btree
  • Match index types to the type of comparisons you perform.
    When you create an index, most storage engines choose the index implementation
    they Match index types to the type of comparisons you perform. When you
    create an index, most storage engines choose the index implementation they will
    use. For example, InnoDB always uses B-tree indexes. MySQL also uses B-tree indexes,
    except that it uses R-tree indexes for spatial data types. However, the MEMORY
    storage engine supports hash indexes and B-tree indexes, and allows you to select
    which one you want. To choose an index type, consider what kind of comparison
    operations you plan to perform on the indexed column:
  • If you use a MEMORY table only for exact-value lookups, a hash index is a
    good choice. This is the default index type for MEMORY tables, so you need
    do nothing special. If you need to perform range-based comparisons with a MEMORY
    table, you should use a B-tree index instead. To specify this type of index,
    add USING BTREE to your index definition. For example:

This link has been bookmarked by 7 people . It was first bookmarked on 02 Jun 2008, by Darius Orvidas.

  • 26 Nov 09
    • e circumstances under which indexes might
      degrade performance and provides guidelines for choosing indexes for your table
      wisely
    • an unordered collection of rows
    • 20 more annotations...
  • 02 Jul 09
  • 01 Jul 09
  • 29 Jun 09
    • Match index types to the type of comparisons you perform.
      When you create an index, most storage engines choose the index implementation
      they Match index types to the type of comparisons you perform. When you
      create an index, most storage engines choose the index implementation they will
      use. For example, InnoDB always uses B-tree indexes. MySQL also uses B-tree indexes,
      except that it uses R-tree indexes for spatial data types. However, the MEMORY
      storage engine supports hash indexes and B-tree indexes, and allows you to select
      which one you want. To choose an index type, consider what kind of comparison
      operations you plan to perform on the indexed column:
    • If you use a MEMORY table only for exact-value lookups, a hash index is a
      good choice. This is the default index type for MEMORY tables, so you need
      do nothing special. If you need to perform range-based comparisons with a MEMORY
      table, you should use a B-tree index instead. To specify this type of index,
      add USING BTREE to your index definition. For example:
  • 28 Jun 09
    • Match index types to the type of comparisons you perform.
      When you create an index, most storage engines choose the index implementation
      they Match index types to the type of comparisons you perform. When you
      create an index, most storage engines choose the index implementation they will
      use. For example, InnoDB always uses B-tree indexes. MySQL also uses B-tree indexes,
      except that it uses R-tree indexes for spatial data types. However, the MEMORY
      storage engine supports hash indexes and B-tree indexes, and allows you to select
      which one you want. To choose an index type, consider what kind of comparison
      operations you plan to perform on the indexed column:
    • If you use a MEMORY table only for exact-value lookups, a hash index is a
      good choice. This is the default index type for MEMORY tables, so you need
      do nothing special. If you need to perform range-based comparisons with a MEMORY
      table, you should use a B-tree index instead. To specify this type of index,
      add USING BTREE to your index definition. For example:
  • 02 Jun 08
    • Indexing is the most important tool you have for speeding up queries
    • Nevertheless, if you don't
      use indexes, in many cases you're just wasting your time trying to improve
      performance by other means
    • 14 more annotations...