Hello, I recently read about InnoDB internals but I can't figure out
some questions.
1. When InnoDB update small record (16KB page) all page with header is
rewritten - is there another header whitch need to be updated (after
double write sync)? Something like extent header or segment header -
segment have header but extent have header?
2. How InnoDB engine know in what page in segment write new record?
On 200MB file there will be around 12800 x 16KB pages, so how InnoDB
know where the data need to be inserted? Engine scan disk to find half
filled page with free space is done?
3. How InnoDB know there is need to increment file size (instead pages reuse) with another
pages? Use some fill factor header or scans all segment on start and
store/modify this data in memory?
some questions.
1. When InnoDB update small record (16KB page) all page with header is
rewritten - is there another header whitch need to be updated (after
double write sync)? Something like extent header or segment header -
segment have header but extent have header?
2. How InnoDB engine know in what page in segment write new record?
On 200MB file there will be around 12800 x 16KB pages, so how InnoDB
know where the data need to be inserted? Engine scan disk to find half
filled page with free space is done?
3. How InnoDB know there is need to increment file size (instead pages reuse) with another
pages? Use some fill factor header or scans all segment on start and
store/modify this data in memory?