~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/analyze.rst

  • Committer: Monty Taylor
  • Date: 2011-03-10 18:18:24 UTC
  • mfrom: (2222.2.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2228.
  • Revision ID: mordred@inaugust.com-20110310181824-mv5zqrahenb62y5i
Merge Mark: Documentation Edits

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
        ANALYZE TABLE table_name [, table_name] ...
9
9
 
10
 
ANALYZE TABLE usually read locks a table, and then analyzes and stores the key distribution for a table.
 
10
ANALYZE TABLE usually read locks a table, and then analyzes and stores
 
11
the key distribution for a table.
11
12
 
12
13
ANALYZE functionality differs depending on the storage engine.
13
14
 
14
 
On InnoDB tables, using ANALYZE will result in a WRITE LOCK on the table. It also will not perform an explicit gathering of statistics when
15
 
you issue an ANALYZE command. To update the index cardinality, there will be 10 random dives into each index, retrieving an estimated cardinality. Therefore, several ANALYZE TABLEs in a row are likely to produce different results each time.
 
15
On InnoDB tables, using ANALYZE will result in a WRITE LOCK on the
 
16
table. It also will not perform an explicit gathering of statistics
 
17
when you issue an ANALYZE command. To update the index cardinality,
 
18
there will be 10 random dives into each index, retrieving an estimated
 
19
cardinality. Therefore, several ANALYZE TABLEs in a row are likely to
 
20
produce different results each time.
16
21
 
17
 
Statistics-gathering with ANALYZE has recently been added to HailDB so that index dives are performed.
 
22
Statistics-gathering with ANALYZE has recently been added to HailDB so
 
23
that index dives are performed.