~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/create_index.rst

  • Committer: Olaf van der Spek
  • Date: 2011-06-24 13:24:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2349.
  • Revision ID: olafvdspek@gmail.com-20110624132406-xf8cq0hcel3kw2uj
Refactor

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.
12
16
 
13
 
FIXME: how this is implemented currently. i.e. no fast add index
 
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.