欢迎来到天天文库
浏览记录
ID:37117156
大小:1.25 MB
页数:58页
时间:2019-05-18
《深入解析MySQLInnoDB引擎》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、InnoDBInternalsCalvinSunSeniorManager,TwitterWHOAMI?•CalvinSun(孙春生),email:csun@twitter.com•JoinedTwitterinMar2013•SeniorManageratOracle,Feb2008–Mar2013•ManageratMySQL,Jan2006–Jan2008•Teamlead,productarchitectatPervasiveSoftware,Jul1997–Dec2005•MSincomputersciencefromUSTC(中国科Agenda
2、IntroductiontoInnoDBInnoDBDataFormatInnoDBLoggingInnoDBExecutionInnoDBOnlineOperationsInnoDBMonitoring&DiagnosticsGetInvolved!IntroductiontoInnoDBInnoDBTimeline19901995200020052010MySQLServerArchitectureMySQLServerEnterpriseManagementToolsandUtilitiesMySQLEnterpriseMonitorMyS
3、QLQueryAnalyzerMySQLWorkBenchBackup&RecoverySecurityReplicationClusterPartitioningINFORMATION_SCHEMAPERFORMANCE_SCHEMACSVNoSQLtoInnoDBviaMemcachedAPIFast,simpleaccesstoInnoDB•AccessedviaMemcachedAPIApplication•UseexistingMemcachedclientsNoSQLSQL•BypassesSQLtransformations(Memcache
4、d(MySQLClient)Protocol)SQL/NoSQLaccess•NoSQLforkey-valueoperationsmysqld•SQLforrichqueries,JOINs,MySQLServerMemcachedpluginFKs,etc.Implementation•Memcacheddaemonplug-intoInnoDBStorageEnginemysqld•MemcachedprotocolmappedtothenativeInnoDBAPI•Sharedprocessspaceforultra-lowlatencyInn
5、oDBFeatures-TransactionsFulltransactionsupport•Atomicity•Consistency•Isolation•DurabilitySQL-standardisolationlevelsRow-levellockingMulti-versionconcurrencycontrol(MVCC)AutomaticdeadlockdetectionPlus•Automaticcrashrecovery•ReferentialintegrityInnoDBDesignConsiderationsModele
6、donGray&Reuter’s“TransactionProcessing:Concepts&Techniques”•NextkeylockingAlsoemulatedtheOraclearchitecture•Multi-versionconcurrencycontrol(MVCC)•Undoinfointhedatabase,notthelogs•Tablespacesfordata&indexstorageAddeduniquesubsystems/featuresInnoDBInnovativeFeaturesAdaptiveHashInd
7、exes:automaticallycreatedonprefixofkeyforfrequentqueries•Approximatesin-memorydatabasesChangeBuffering:buffersmodificationstosecondaryindexeswhentheleafpagesarenotinthebufferpool•BatchedmergesresultinlessrandomaccesspatternsDoublewriteBuffer:datafirstwrittenintothebuffer,thenflus
8、htothedatafiles•Preventing
此文档下载收益归作者所有