~ignacio-nin/percona-server/5.1-issue26684

  • Committer: Alexey Kopytov
  • Date: 2011-03-31 11:16:54 UTC
  • Revision ID: akopytov@gmail.com-20110331111654-aok07pwra3j0qh88
Bug #744103: Make use of InnoDB fast index creation in mysqldump, ALTER
TABLE and OPTIMIZE TABLE

Initial implementation of innodb_expand_fast_index_creation.patch.

This patch expands the applicability of InnoDB fast index creation to
mysqldump, ALTER TABLE and OPTIMIZE TABLE as follows:

1. mysqldump has now a new option, --innodb-optimize-keys, which changes
the way InnoDB tables are dumped so that secondary and foreign keys are
created after loading the data thus taking advantage of fast index
creation.

This part of the patch is an implementation of the feature request
reported as MySQL bug #49120.

More specifically:

- KEY, UNIQUE KEY and CONSTRAINT specifications are omitted from CREATE
TABLE corresponding to InnoDB tables.

- an additional ALTER TABLE is issued after dumping the data to create
the previously omitted keys.

Delaying foreign key creation does not introduce any additional risks as
mysqldump always prepends its output with SET FOREIGN_KEY_CHECKS=0 anyway.

2. When ALTER TABLE requires a table copy, secondary keys are now dropped
and recreated later after copying the data. The following restrictions
apply:

- only non-unique keys can be involved in this optimization

- if the table contains foreign keys, or a foreign key is being added as
a part of the current ALTER TABLE statement, the optimization is
disabled for all keys.

This part of the patch is an implementation of the feature request
reported as MySQL bug #57583.

3. As OPTIMIZE TABLE is mapped to ALTER TABLE ... ENGINE=InnoDB for
InnoDB tables, it now also benefits from fast index creation with the
same restrictions as for ALTER TABLE.
Filename Latest Rev Last Changed Committer Comment Size
..
log_connection_error.patch 132.3.3 13 years ago Oleg Tsarev reorganize tests for log_connection_error.patch Diff
profiling_slow.patch 147.2.1 13 years ago Alexey Kopytov LP bug#643149: profiling_slow format is unparseabl Diff
query_cache_enhance.patch 132.3.2 13 years ago Oleg Tsarev reorganize tests for query_cache_enhance.patch Diff
response-time-distribution.patch 120 13 years ago Oleg Tsarev fix bug 650977 Diff
show_slave_status_nolock.patch 146.1.2 13 years ago Oleg Tsarev move tests for show_slave_status_nolock.patch to m Diff
slow_extended.patch 132.3.1 13 years ago Oleg Tsarev reorganize tests for slow_extended.patch Diff
sql_no_fcache.patch 132.3.4 13 years ago Oleg Tsarev reorganize tests for sql_no_fcache.patch Diff
have_response_time_distribution.inc 166.2.1 13 years ago Oleg Tsarev add --without-response_time_distribution 145 bytes Diff Download File
have_response_time_distribution.require 166.2.1 13 years ago Oleg Tsarev add --without-response_time_distribution 56 bytes Diff Download File
innodb_fix_misc_bug51325.result 199.3.2 13 years ago Valentine Gostev Fixed test for mp50581 426 bytes Diff Download File
innodb_fix_misc_bug51325.test 199.3.2 13 years ago Valentine Gostev Fixed test for mp50581 446 bytes Diff Download File
percona_innodb_buffer_pool_shm-master.opt 183.1.1 13 years ago Aleksandr Kuzminsky ported mysql-tests from 5.1.53 51 bytes Diff Download File
percona_innodb_buffer_pool_shm.result 183.1.1 13 years ago Aleksandr Kuzminsky ported mysql-tests from 5.1.53 272 bytes Diff Download File
percona_innodb_buffer_pool_shm.test 183.1.1 13 years ago Aleksandr Kuzminsky ported mysql-tests from 5.1.53 494 bytes Diff Download File
percona_innodb_deadlock_count.result 31.1.1 13 years ago Oleg Tsarev fix incorrect test for percona_innodb_deadlock_cou 672 bytes Diff Download File
percona_innodb_deadlock_count.test 31.1.1 13 years ago Oleg Tsarev fix incorrect test for percona_innodb_deadlock_cou 1.3 KB Diff Download File
percona_innodb_doublewrite_file-master.opt 9 14 years ago kinoyasu port for 5.1.47-1.0.8 41 bytes Diff Download File
percona_innodb_doublewrite_file.result 9 14 years ago kinoyasu port for 5.1.47-1.0.8 124 bytes Diff Download File
percona_innodb_doublewrite_file.test 9 14 years ago kinoyasu port for 5.1.47-1.0.8 76 bytes Diff Download File
percona_innodb_use_sys_stats_table-master.opt 54.4.2 13 years ago kinoyasu percona_innodb_use_sys_stats_table.test is added 29 bytes Diff Download File
percona_innodb_use_sys_stats_table.result 54.4.2 13 years ago kinoyasu percona_innodb_use_sys_stats_table.test is added 95 bytes Diff Download File
percona_innodb_use_sys_stats_table.test 54.4.2 13 years ago kinoyasu percona_innodb_use_sys_stats_table.test is added 78 bytes Diff Download File
percona_server_variables.result 166.2.1 13 years ago Oleg Tsarev add --without-response_time_distribution 8.3 KB Diff Download File
percona_server_variables.test 166.2.1 13 years ago Oleg Tsarev add --without-response_time_distribution 195 bytes Diff Download File
percona_show_temp_tables.result 6.1.2 14 years ago kinoyasu reorder and adjust mysql-test acript and add simpl 1.8 KB Diff Download File
percona_show_temp_tables.test 6.1.2 14 years ago kinoyasu reorder and adjust mysql-test acript and add simpl 2 KB Diff Download File
percona_suppress_log_warning_1592-master.opt 7.1.1 14 years ago kinoyasu new option suppress_log_warning_1592 12 bytes Diff Download File
percona_suppress_log_warning_1592.result 7.1.1 14 years ago kinoyasu new option suppress_log_warning_1592 1 KB Diff Download File
percona_suppress_log_warning_1592.test 7.1.1 14 years ago kinoyasu new option suppress_log_warning_1592 1.4 KB Diff Download File
percona_xtradb_admin_command.result 6.1.2 14 years ago kinoyasu reorder and adjust mysql-test acript and add simpl 241 bytes Diff Download File
percona_xtradb_admin_command.test 6.1.2 14 years ago kinoyasu reorder and adjust mysql-test acript and add simpl 159 bytes Diff Download File
percona_xtradb_bug317074.result 6.1.2 14 years ago kinoyasu reorder and adjust mysql-test acript and add simpl 186 bytes Diff Download File
percona_xtradb_bug317074.test 43 13 years ago kinoyasu adjust percona_xtradb_bug317074.test for reasonabl 1.1 KB Diff Download File
userstat_bug602047.result 199.1.1 13 years ago Oleg Tsarev Fix bug #724577 - update test result for percona_s 523 bytes Diff Download File
userstat_bug602047.test 199.1.1 13 years ago Oleg Tsarev Fix bug #724577 - update test result for percona_s 557 bytes Diff Download File