Sunteți pe pagina 1din 1
InnoDB Startup Options and System Variables having an identifier value larger than 100, with the intention of updating some column in the selected rows later: SELECT * FROM child WHERE 14 > 100 FOR UPDATE) ‘The query scans the index starting from the first record where << is greater than 100. Ifthe locks set on the index records in that range do not lock out inserts made in the gaps, another session can insert a new row into the table, Consequently, if you were to execute the same SzLaCT again within the same transaction, you would see a new row in the result set returned by the query. This also means that if new items are added to the database, To2.0D8 does not guarantee serializabilty. Therefore, if innodiy_locks_unsafe_for_binlog/s enabled InnoDS guarantees at most an isolation level of READ COMM ED. (Conflict serializabilty is still guaranteed.) For additional information about phantoms, see Section 1.2.9.5, “Avoiding the Phantom Problem Using Next-Key Locking’ innodb_locks_unsafe_for_pinlog is available as of MySQL 4.1.4. innodb_log_arch_dir ‘The directory where fully written log files would be archived if we used log archiving. The value of this variable should currently be set the same as innodb log group home dir. Starting from MySQL 4.06, there is no need to set this variable. innodb_1og_archive ‘Whether to log Inno archive files. This variable is unused. Recovery from a backup is done by MySQL using its own log files, so there is no need to archive tn20D8 jog files. The default for this variable is 0. innodb_log_buffer_size The sice in bytes of the buffer thal TonoD8 uses Wo wile Lo Ue log files on dish. The default values is 1MB. Sensible values range from 1MB to 8MB. A large log buffer enables large transactions to run without a need to write the log to disk before the transactions commit. Thus, if you have big ‘transactions, making the log buffer larger saves disk /O. innodb_log file size ‘The size in bytes of each log file in 2 log group. The combined size of log files must be less than AGB. The default value is SME, Sensible values range from 1MB to 1/1th of the size of the buffer ool, where 2vis the number of log files in the group. The larger the value, the less cheokpoint flush activity is needed in the buffer pool, saving disk VO. But larger log files also mean that recovery is slower in case of a crash. innodb_log_files_in_group ‘The number of log files in the log group. InnoDB writes to the files in a circular fashion. The default (and recommended) value is 2. innedb_log_group_home_dir The directory path to the TanoD® lg files. It must have the same value as innodb_log_arch_dix. If you do not specify any InnoDS log Variables, the default is to create two SMB files names ib_logfiled and ib_lo: the MySQL data directory. innodb_max_dirty_pages_pct 1004

S-ar putea să vă placă și