~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-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

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
10
.. code-block:: mysql
9
11
 
10
 
   CREATE INDEX table_1_index ON table_1 (a,b);
 
12
        CREATE INDEX table_1_index ON table_1 (a,b);
11
13
 
12
 
This would create an index on table_t named  table_1_index that convered
 
14
This would create an index on table_t named table_1_index that converged
13
15
columns a and b.
14
16
 
15
 
.. todo::
16
 
   
17
 
   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.