Rechercher dans le manuel MySQL
15.19.6.6 Performing DML and DDL Statements on the Underlying InnoDB Table
You can access the underlying InnoDB
table
(which is test.demo_test
by default) through
standard SQL interfaces. However, there are some restrictions:
When querying a table that is also accessed through the memcached interface, remember that memcached operations can be configured to be committed periodically rather than after every write operation. This behavior is controlled by the
daemon_memcached_w_batch_size
option. If this option is set to a value greater than1
, useREAD UNCOMMITTED
queries to find rows that were just inserted.- +------+------+------+------+-----------+------+------+------+------+------+------+
- | cx | cy | c1 | cz | c2 | ca | CB | c3 | cu | c4 | C5 |
- +------+------+------+------+-----------+------+------+------+------+------+------+
- +------+------+------+------+-----------+------+------+------+------+------+------+
When modifying a table using SQL that is also accessed through the memcached interface, you can configure memcached operations to start a new transaction periodically rather than for every read operation. This behavior is controlled by the
daemon_memcached_r_batch_size
option. If this option is set to a value greater than1
, changes made to the table using SQL are not immediately visible to memcached operations.The
InnoDB
table is either IS (intention shared) or IX (intention exclusive) locked for all operations in a transaction. If you increasedaemon_memcached_r_batch_size
anddaemon_memcached_w_batch_size
substantially from their default value of1
, the table is most likely locked between each operation, preventing DDL statements on the table.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-innodb-memcached-ddl.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.