第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

沒(méi)聽(tīng)懂innodb_fulsh_log_at_trx_commit 值為0和2的區(qū)別是啥

好像都是一秒以后刷新到磁盤(pán),是2會(huì)先刷到緩存里么,那0的時(shí)候一秒以后直接刷磁盤(pán)?

正在回答

2 回答

0和2都是每秒從緩沖區(qū)寫(xiě)入文件一次。區(qū)別是commit操作時(shí),0不做任何操作,為2 的時(shí)候,commit時(shí)會(huì)把緩沖區(qū)內(nèi)容寫(xiě)入文件。文檔上是這么寫(xiě)的:If the value of innodb_flush_log_at_trx_commit is 0, the log buffer is written out to the log file once per second and the flush to disk operation is performed on the log file, but nothing is done at a transaction commit.. When the value is 2, the log buffer is written out to the file at each commit, but the flush to disk operation is not performed on it. However, the flushing on the log file takes place once per second also when the value is 2.

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

英寧 提問(wèn)者

非常感謝!
2017-03-21 回復(fù) 有任何疑惑可以回復(fù)我~

0是每秒刷一次磁盤(pán),1是每一個(gè)事務(wù)提交后都要刷一次磁盤(pán),2是提交事務(wù)后記錄但是不刷盤(pán)。

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

沒(méi)聽(tīng)懂innodb_fulsh_log_at_trx_commit 值為0和2的區(qū)別是啥

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)