InnoDB
2017-02-12 21:26:18 0 举报
InnoDB是MySQL数据库的一种存储引擎,它提供了高度优化的事务处理和崩溃恢复功能。与MyISAM等其他存储引擎相比,InnoDB支持事务、行级锁定和外键约束,这使得它在处理大量数据时具有更高的性能和可靠性。此外,InnoDB还提供了对多版本并发控制(MVCC)的支持,允许多个用户同时访问数据库而不会产生冲突。总之,InnoDB是一种功能强大、性能优越的存储引擎,适用于需要高并发访问和事务支持的应用。
作者其他创作
大纲/内容
Update
Force
3. mmap
trx_undo_t
4. read/write + buf_flush_note_modification
Insert List
Start Apply Worker/Reader
...
Header
Block
trx_rseg_t
recv_apply_hashed_log_recs
Undo Log
Roll Ptr
recv_sys_create/recv_sys_init
trx_t
recv_sys_add_to_parsing_buf
Lock Manager
Log Buffer
Update List
recv_sys_init_for_reuse
Insert Cache
Index
ARIES
recv_apply_log_startup
Space
Physical Replication
recv_recovery_from_checkpoint_finish
2. fseg_alloc_free_page
recv_recover_page_io_complete
Shaow Paging
Undo Slot 0
update_undo
Page Fault Handler
4. read/write
Buffer Pool
Insert B
recv_recovery_from_checkpoint_start
apply_hashes
Undo Slot 1023
Insert A
recv_parse_log_recs
Rollback Segment
rseg
....
Runtime Application
LogScheduler::apply_runtime_redo
Redo
Update C
1
recv_scan_log_recs
Undo
/lru + /flu
recv_single_rec/recv_multi_rec
Crash Recovery
active do_single_task
recv_add_to_hash_table
Insert C
Undo-Only WAL
MARS
recv_recover_page_func
2
Redo-Only WAL
Process
3. buf_page_get_gen
Rollback Segment 0
Update Cache
recv_sys_copy_to_parsing_buf
update undo
recv_recover_page_startup
recv_parse_log_rec
C
recv_parse_or_apply_log_rec_body
recv_apply_log_rec
Transaction kUndo Log
buf_page_io_complete
log_file_apply_coordinator
Apply
recv_apply_log_active
recv_recovery_begin
WBL
2. posix_fallocate
Transaction iUndo Log
Rollback Segment Header
recv_recover_page_online
Update E
recv_read_log_seg
File
No-Steal
Page Cache
insert undo
0 条评论
下一页