~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/create_index.rst

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
CREATE INDEX
2
2
============
3
3
 
4
 
CREATE [UNIQUE] INDEX index_name [USING {BTREE | HASH}] ON table_name (column_name [length] [ASC | DESC], ...);
 
4
.. code-block:: mysql
 
5
 
 
6
   CREATE [UNIQUE] INDEX index_name [USING {BTREE | HASH}] ON table_name (column_name [length] [ASC | DESC], ...);
5
7
 
6
8
An example:
7
9
 
8
 
CREATE INDEX table_1_index ON table_1 (a,b);
9
 
 
10
 
This would create an index on table_t named  table_1_index that convered
 
10
.. code-block:: mysql
 
11
 
 
12
        CREATE INDEX table_1_index ON table_1 (a,b);
 
13
 
 
14
This would create an index on table_t named table_1_index that converged
11
15
columns a and b.
 
16
 
 
17
Fast index creation (where a storage engine can create or drop indexes
 
18
without copying and rebuilding the contents of the entire table) is
 
19
not implemented yet for Drizzle, but it is slated for the future.