相关文章推荐
大方的柑橘
·
普法动态_法治你我他 | ...
·
4 月前
·
踢足球的南瓜
·
全网最全漫画软件,适宜一个人钻被窝看!_哔哩 ...
·
8 月前
·
至今单身的伏特加
·
斗罗:开局为比比东算命觉醒异火最新章节全文无 ...
·
11 月前
·
另类的萝卜
·
次元战争红�%B - 搜狗图片搜索
·
1 年前
·
温暖的乒乓球
·
孙立坚:全球金融市场复盘!危机的根源在哪里? ...
·
1 年前
·
小百科
›
TiDB 6.4.0 Release Notes | TiDB 文档中心
tidb
sql优化
mysql创建数据库
数据库分区
一直单身的机器猫
4 月前
</noscript><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TPX49SBK" height="0" width="0" style="display: none; visibility: hidden" aria-hidden="true"/></noscript><div id="___gatsby"><div style="outline:none" tabindex="-1" id="gatsby-focus-wrapper"><header class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation4 MuiAppBar-root MuiAppBar-colorPrimary MuiAppBar-positionFixed doc-site-header mui-fixed css-r4hqpc"><div class="MuiToolbar-root MuiToolbar-gutters MuiToolbar-regular css-11fgfqk"><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-iuftj9" tabindex="0" type="button" aria-label="menu"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="MenuIcon"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg></button><div class="MuiBox-root css-13tqxrv"><a style="text-decoration:none" href="/zh"><svg width="152" height="36" viewbox="0 0 152 36" fill="none"><g clip-path="url(#clip0_789_1365)"><path d="M0 26.9605V9.04959C0 9.01208 0.0187549 8.98395 0.0468872 8.96519L15.5478 0.00973267C15.5759 -0.00902222 15.6134 -0.00902222 15.6416 0.00973267L31.1425 8.95581C31.1706 8.97457 31.1894 9.0027 31.1894 9.04021V26.9511C31.1894 26.9886 31.1706 27.0168 31.1425 27.0355L15.6416 35.991C15.6134 36.0097 15.5759 36.0097 15.5478 35.991L0.0468872 27.0355C0.0187549 27.0168 0 26.9886 0 26.9605Z" fill="#DC150B"/><path d="M10.3808 15.0336C10.3714 15.0242 10.3527 15.0149 10.3433 15.0242L5.25136 17.9688H5.2326C5.21384 17.9688 5.20447 17.9594 5.20447 17.9406V12.0047C5.20447 11.9953 5.21384 11.986 5.22322 11.9766L5.22322 11.9766L15.5572 6.01253C15.5665 6.00315 15.5759 6.00315 15.5853 6.01253L20.7241 8.9758L20.7335 8.98518C20.7429 8.99455 20.7335 9.01331 20.7241 9.02268L15.5759 11.9953C15.5665 12.0047 15.5572 12.0141 15.5572 12.0235V29.9625V29.9813C15.5478 29.9906 15.529 30 15.5197 29.9906L10.3902 27.0368C10.3902 27.0274 10.3808 27.018 10.3808 27.0086V15.0524V15.0336Z" fill="white"/><path d="M20.7992 26.9992C20.7804 26.9992 20.7616 26.9805 20.7616 26.9617V15.0336C20.7616 15.0149 20.771 15.0055 20.7804 14.9961L25.9286 12.0235L25.9286 12.0235C25.938 12.0141 25.938 12.0141 25.9474 12.0141C25.9661 12.0141 25.9849 12.0328 25.9849 12.0516V23.9797C25.9849 23.9985 25.9755 24.0078 25.9661 24.0172L20.8179 26.9899C20.8085 26.9992 20.8085 26.9992 20.7992 26.9992Z" fill="white"/></g><path d="M37.1894 12.4971H42.0242V26.9998H45.4248V12.4971H50.2596V9.37683H37.1894V12.4971Z" fill="black"/><path d="M53.6372 9C53.1197 9 52.6672 9.18709 52.2887 9.55826C51.9102 9.92943 51.7151 10.3941 51.7151 10.9373C51.7151 11.4503 51.9073 11.8999 52.2858 12.2802C52.6643 12.6574 53.1167 12.8505 53.6342 12.8505C54.1517 12.8505 54.5775 12.6574 54.9501 12.2802C55.3227 11.903 55.509 11.4503 55.509 10.9373C55.509 10.3941 55.3257 9.93245 54.9619 9.56128C54.5982 9.19011 54.1517 9.00302 53.6372 9.00302V9Z" fill="black"/><path d="M55.2895 14.3592H51.9864V27H55.2895V14.3592Z" fill="black"/><path d="M64.3322 9.37683H58.2613V26.9998H64.3322C66.9492 26.9998 69.028 26.2031 70.5124 24.6309C71.9939 23.0587 72.748 20.8921 72.748 18.1883C72.748 15.4845 71.9969 13.2967 70.5124 11.7336C69.028 10.1705 66.9492 9.37683 64.3322 9.37683ZM61.6619 12.4971H64.2109C65.9024 12.4971 67.1798 12.998 68.0137 13.9847C68.8506 14.9775 69.2734 16.3566 69.2734 18.0857C69.2734 19.8148 68.8476 21.2512 68.0108 22.3013C67.1769 23.3454 65.8994 23.8765 64.208 23.8765H61.659V12.494L61.6619 12.4971Z" fill="black"/><path d="M86.5964 19.1388C86.0346 18.4418 85.3663 17.9409 84.6152 17.6512V17.621C86.1883 16.8424 86.9838 15.566 86.9838 13.8278C86.9838 12.479 86.5461 11.3866 85.6856 10.5839C84.8251 9.78421 83.5566 9.37683 81.9154 9.37683H74.7948V26.9998H81.8681C83.6068 26.9998 84.9907 26.5652 85.9784 25.7082C86.972 24.8482 87.4747 23.6261 87.4747 22.075C87.4747 20.8468 87.179 19.8601 86.5994 19.1388H86.5964ZM78.1185 16.5256V12.1953H81.4718C82.1105 12.1953 82.628 12.3884 83.0095 12.7686C83.388 13.1489 83.5802 13.68 83.5802 14.3499C83.5802 15.0198 83.3909 15.5569 83.0184 15.9432C82.6458 16.3294 82.1105 16.5256 81.4216 16.5256H78.1156H78.1185ZM83.9972 21.8245C83.9972 22.5276 83.7872 23.101 83.3762 23.5295C82.9651 23.958 82.356 24.1753 81.5724 24.1753H78.1215V19.3471H81.5724C82.3235 19.3471 82.9237 19.5794 83.3525 20.0411C83.7813 20.5028 84.0001 21.1033 84.0001 21.8215L83.9972 21.8245Z" fill="black"/><path d="M97.3306 26.5V9.7H102.299C107.771 9.7 111.083 12.868 111.083 18.1C111.083 23.332 107.771 26.5 102.299 26.5H97.3306ZM102.299 24.364C106.331 24.364 108.659 22.06 108.659 18.1C108.659 14.14 106.331 11.836 102.299 11.836H99.7066V24.364H102.299ZM118.968 26.764C115.464 26.764 112.824 24.052 112.824 20.5C112.824 16.948 115.464 14.236 118.968 14.236C122.472 14.236 125.112 16.948 125.112 20.5C125.112 24.052 122.472 26.764 118.968 26.764ZM118.968 24.628C121.152 24.628 122.736 22.876 122.736 20.5C122.736 18.124 121.152 16.372 118.968 16.372C116.784 16.372 115.2 18.124 115.2 20.5C115.2 22.876 116.784 24.628 118.968 24.628ZM132.772 26.764C129.22 26.764 126.7 24.124 126.7 20.5C126.7 16.876 129.22 14.236 132.772 14.236C135.652 14.236 137.884 15.964 138.244 18.532H135.844C135.532 17.236 134.332 16.372 132.772 16.372C130.588 16.372 129.076 18.076 129.076 20.5C129.076 22.9 130.588 24.628 132.772 24.628C134.332 24.628 135.532 23.764 135.844 22.468H138.244C137.884 25.036 135.652 26.764 132.772 26.764ZM144.557 26.764C141.677 26.764 139.781 25.108 139.709 22.732H142.085C142.229 23.956 142.973 24.724 144.581 24.724C145.733 24.724 146.765 24.34 146.765 23.332C146.765 22.588 146.333 22.06 145.157 21.7L143.333 21.172C141.173 20.548 140.093 19.3 140.093 17.716C140.093 15.604 141.965 14.236 144.413 14.236C146.885 14.236 148.685 15.7 148.829 17.74H146.453C146.285 16.828 145.445 16.204 144.341 16.204C143.261 16.204 142.469 16.804 142.469 17.716C142.469 18.412 142.925 18.868 144.245 19.228L146.069 19.732C148.109 20.308 149.141 21.556 149.141 23.188C149.141 25.396 147.197 26.764 144.557 26.764Z" fill="black"/><defs><clippath id="clip0_789_1365"><rect width="31.1894" height="36" fill="white"/></clippath></defs></svg></a></div><div class="css-2iqpys"><div class="MuiBox-root css-irbys9"><a style="text-decoration:none" hreflang="zh" href="/zh/tidb/stable"><div class="MuiTypography-root MuiTypography-body1 css-jhf72c">TiDB</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-z7v9yr" target="_blank" href="https://asktug.com/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-jhf72c">社区</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-z7v9yr" target="_blank" href="https://cn.pingcap.com/contact/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-jhf72c">联系我们</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-z7v9yr" target="_blank" href="https://cn.pingcap.com/product/#SelectProduct" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-jhf72c"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="DownloadIcon"><path d="M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"/></svg></div></a></div></div><div class="MuiBox-root css-1vn3uc0"><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorInherit MuiButton-disableElevation css-tjg32r" tabindex="0" type="button" id="header-nav-items" aria-haspopup="true"><span class="MuiButton-startIcon MuiButton-iconSizeMedium css-1l6c7y9"><svg width="152" height="36" viewbox="0 0 152 36" fill="none"><g clip-path="url(#clip0_789_1365)"><path d="M0 26.9605V9.04959C0 9.01208 0.0187549 8.98395 0.0468872 8.96519L15.5478 0.00973267C15.5759 -0.00902222 15.6134 -0.00902222 15.6416 0.00973267L31.1425 8.95581C31.1706 8.97457 31.1894 9.0027 31.1894 9.04021V26.9511C31.1894 26.9886 31.1706 27.0168 31.1425 27.0355L15.6416 35.991C15.6134 36.0097 15.5759 36.0097 15.5478 35.991L0.0468872 27.0355C0.0187549 27.0168 0 26.9886 0 26.9605Z" fill="#DC150B"/><path d="M10.3808 15.0336C10.3714 15.0242 10.3527 15.0149 10.3433 15.0242L5.25136 17.9688H5.2326C5.21384 17.9688 5.20447 17.9594 5.20447 17.9406V12.0047C5.20447 11.9953 5.21384 11.986 5.22322 11.9766L5.22322 11.9766L15.5572 6.01253C15.5665 6.00315 15.5759 6.00315 15.5853 6.01253L20.7241 8.9758L20.7335 8.98518C20.7429 8.99455 20.7335 9.01331 20.7241 9.02268L15.5759 11.9953C15.5665 12.0047 15.5572 12.0141 15.5572 12.0235V29.9625V29.9813C15.5478 29.9906 15.529 30 15.5197 29.9906L10.3902 27.0368C10.3902 27.0274 10.3808 27.018 10.3808 27.0086V15.0524V15.0336Z" fill="white"/><path d="M20.7992 26.9992C20.7804 26.9992 20.7616 26.9805 20.7616 26.9617V15.0336C20.7616 15.0149 20.771 15.0055 20.7804 14.9961L25.9286 12.0235L25.9286 12.0235C25.938 12.0141 25.938 12.0141 25.9474 12.0141C25.9661 12.0141 25.9849 12.0328 25.9849 12.0516V23.9797C25.9849 23.9985 25.9755 24.0078 25.9661 24.0172L20.8179 26.9899C20.8085 26.9992 20.8085 26.9992 20.7992 26.9992Z" fill="white"/></g><path d="M37.1894 12.4971H42.0242V26.9998H45.4248V12.4971H50.2596V9.37683H37.1894V12.4971Z" fill="black"/><path d="M53.6372 9C53.1197 9 52.6672 9.18709 52.2887 9.55826C51.9102 9.92943 51.7151 10.3941 51.7151 10.9373C51.7151 11.4503 51.9073 11.8999 52.2858 12.2802C52.6643 12.6574 53.1167 12.8505 53.6342 12.8505C54.1517 12.8505 54.5775 12.6574 54.9501 12.2802C55.3227 11.903 55.509 11.4503 55.509 10.9373C55.509 10.3941 55.3257 9.93245 54.9619 9.56128C54.5982 9.19011 54.1517 9.00302 53.6372 9.00302V9Z" fill="black"/><path d="M55.2895 14.3592H51.9864V27H55.2895V14.3592Z" fill="black"/><path d="M64.3322 9.37683H58.2613V26.9998H64.3322C66.9492 26.9998 69.028 26.2031 70.5124 24.6309C71.9939 23.0587 72.748 20.8921 72.748 18.1883C72.748 15.4845 71.9969 13.2967 70.5124 11.7336C69.028 10.1705 66.9492 9.37683 64.3322 9.37683ZM61.6619 12.4971H64.2109C65.9024 12.4971 67.1798 12.998 68.0137 13.9847C68.8506 14.9775 69.2734 16.3566 69.2734 18.0857C69.2734 19.8148 68.8476 21.2512 68.0108 22.3013C67.1769 23.3454 65.8994 23.8765 64.208 23.8765H61.659V12.494L61.6619 12.4971Z" fill="black"/><path d="M86.5964 19.1388C86.0346 18.4418 85.3663 17.9409 84.6152 17.6512V17.621C86.1883 16.8424 86.9838 15.566 86.9838 13.8278C86.9838 12.479 86.5461 11.3866 85.6856 10.5839C84.8251 9.78421 83.5566 9.37683 81.9154 9.37683H74.7948V26.9998H81.8681C83.6068 26.9998 84.9907 26.5652 85.9784 25.7082C86.972 24.8482 87.4747 23.6261 87.4747 22.075C87.4747 20.8468 87.179 19.8601 86.5994 19.1388H86.5964ZM78.1185 16.5256V12.1953H81.4718C82.1105 12.1953 82.628 12.3884 83.0095 12.7686C83.388 13.1489 83.5802 13.68 83.5802 14.3499C83.5802 15.0198 83.3909 15.5569 83.0184 15.9432C82.6458 16.3294 82.1105 16.5256 81.4216 16.5256H78.1156H78.1185ZM83.9972 21.8245C83.9972 22.5276 83.7872 23.101 83.3762 23.5295C82.9651 23.958 82.356 24.1753 81.5724 24.1753H78.1215V19.3471H81.5724C82.3235 19.3471 82.9237 19.5794 83.3525 20.0411C83.7813 20.5028 84.0001 21.1033 84.0001 21.8215L83.9972 21.8245Z" fill="black"/><path d="M97.3306 26.5V9.7H102.299C107.771 9.7 111.083 12.868 111.083 18.1C111.083 23.332 107.771 26.5 102.299 26.5H97.3306ZM102.299 24.364C106.331 24.364 108.659 22.06 108.659 18.1C108.659 14.14 106.331 11.836 102.299 11.836H99.7066V24.364H102.299ZM118.968 26.764C115.464 26.764 112.824 24.052 112.824 20.5C112.824 16.948 115.464 14.236 118.968 14.236C122.472 14.236 125.112 16.948 125.112 20.5C125.112 24.052 122.472 26.764 118.968 26.764ZM118.968 24.628C121.152 24.628 122.736 22.876 122.736 20.5C122.736 18.124 121.152 16.372 118.968 16.372C116.784 16.372 115.2 18.124 115.2 20.5C115.2 22.876 116.784 24.628 118.968 24.628ZM132.772 26.764C129.22 26.764 126.7 24.124 126.7 20.5C126.7 16.876 129.22 14.236 132.772 14.236C135.652 14.236 137.884 15.964 138.244 18.532H135.844C135.532 17.236 134.332 16.372 132.772 16.372C130.588 16.372 129.076 18.076 129.076 20.5C129.076 22.9 130.588 24.628 132.772 24.628C134.332 24.628 135.532 23.764 135.844 22.468H138.244C137.884 25.036 135.652 26.764 132.772 26.764ZM144.557 26.764C141.677 26.764 139.781 25.108 139.709 22.732H142.085C142.229 23.956 142.973 24.724 144.581 24.724C145.733 24.724 146.765 24.34 146.765 23.332C146.765 22.588 146.333 22.06 145.157 21.7L143.333 21.172C141.173 20.548 140.093 19.3 140.093 17.716C140.093 15.604 141.965 14.236 144.413 14.236C146.885 14.236 148.685 15.7 148.829 17.74H146.453C146.285 16.828 145.445 16.204 144.341 16.204C143.261 16.204 142.469 16.804 142.469 17.716C142.469 18.412 142.925 18.868 144.245 19.228L146.069 19.732C148.109 20.308 149.141 21.556 149.141 23.188C149.141 25.396 147.197 26.764 144.557 26.764Z" fill="black"/><defs><clippath id="clip0_789_1365"><rect width="31.1894" height="36" fill="white"/></clippath></defs></svg></span><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-pt151d"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div><div class="css-1w2hxsf"><div class="MuiBox-root css-19itmc6"><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-jwr93t" tabindex="0" type="button"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="TranslateIcon"><path d="m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"/></svg></button><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorInherit MuiButton-disableElevation css-1r5wmim" tabindex="0" type="button" id="header-lang-switch" aria-haspopup="true"><span class="MuiButton-startIcon MuiButton-iconSizeMedium css-1l6c7y9"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1msahp5" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="TranslateIcon"><path d="m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"/></svg></span><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-pt151d"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1msahp5" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div><div class="css-1iegyem"><div class="MuiBox-root css-0"><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-iuftj9" tabindex="0" type="button"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="SearchIcon"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg></button><form class="MuiBox-root css-1dl8tgy" novalidate="" autocomplete="off"><div class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-7omol5"><div class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart css-10r6rap"><div class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-outlined MuiInputAdornment-sizeSmall css-1a6giau"><span class="notranslate"></span><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-1k33q06" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="SearchIcon"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg></div><input type="search" aria-invalid="false" id="doc-search" placeholder="搜索文档" value="" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputTypeSearch MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart css-1a7iucg"/><fieldset aria-hidden="true" class="MuiOutlinedInput-notchedOutline css-igs3ac"><legend class="css-hdw1oc"><span class="notranslate"></span></legend></fieldset></div></div></form></div></div></div></div></header><div class="PingCAP-Doc MuiBox-root css-s1brf2"><div class="MuiBox-root css-hboir5"><aside class="MuiBox-root css-2tzg8"><div class="MuiBox-root css-ysaqso"><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-disableElevation css-1q0sqyi" tabindex="0" type="button" id="version-select-button" aria-haspopup="true"><div class="MuiTypography-root MuiTypography-body1 css-hg1lfe">v8.1</div><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-pt151d"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1rrdqpg" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></span></button><ul role="tree" id="left-nav-treeview" aria-multiselectable="false" class="MuiTreeView-root css-12mehxg" tabindex="0" aria-label="left navigation"><a class="MuiTypography-root MuiTypography-body1 css-z7v9yr" target="_blank" href="https://docs.pingcap.com/zh" style="text-decoration:none;width:100%;color:inherit"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" id="left-nav-treeview-0-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">文档中心</div></div></div></div></div></li></a><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">关于 TiDB</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">快速上手</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">应用开发</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-4" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">部署标准集群</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-5" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">数据迁移</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-6" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">数据集成</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-7" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">运维操作</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-8" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">监控与告警</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-9" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">故障诊断</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-10" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">性能调优</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-11" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">教程</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-12" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">TiDB 工具</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">参考指南</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-14" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">常见问题解答 (FAQ)</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="true" id="left-nav-treeview-0-15" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-13dmm4z" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">版本发布历史</div></div></div></div></div><ul class="MuiCollapse-root MuiCollapse-vertical MuiTreeItem-group MuiCollapse-entered css-1xxsnna" style="min-height:0px" role="group"><div class="MuiCollapse-wrapper MuiCollapse-vertical css-hboir5"><div class="MuiCollapse-wrapperInner MuiCollapse-vertical css-8atqhb"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/release-notes"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" id="left-nav-treeview-0-15-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">发布版本汇总</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/release-timeline"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" id="left-nav-treeview-0-15-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">版本发布时间线</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/versioning"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" id="left-nav-treeview-0-15-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">TiDB 版本规则</div></div></div></div></div></li></a><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/binary-package"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" id="left-nav-treeview-0-15-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">TiDB 离线包</div></div></div></div></div></li></a><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-4" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v8.1</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-5" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v8.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-6" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.6</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-7" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.5</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-8" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.4</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-9" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.3</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-10" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.2</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-11" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.1</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-12" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v7.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-13" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.6</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-14" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.5</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="true" id="left-nav-treeview-0-15-15" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-13dmm4z" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.4</div></div></div></div></div><ul class="MuiCollapse-root MuiCollapse-vertical MuiTreeItem-group MuiCollapse-entered css-1xxsnna" style="min-height:0px" role="group"><div class="MuiCollapse-wrapper MuiCollapse-vertical css-hboir5"><div class="MuiCollapse-wrapperInner MuiCollapse-vertical css-8atqhb"><a aria-current="page" style="text-decoration:none;width:100%;color:inherit" class="" href="/zh/tidb/stable/release-6.4.0"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-selected="true" id="left-nav-treeview-0-15-15-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content Mui-expanded Mui-selected" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-xeut16"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">6.4.0-DMR</div></div></div></div></div></li></a></div></div></ul></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-16" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.3</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-17" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.2</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-18" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.1</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-19" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v6.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-20" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v5.4</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-21" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v5.3</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-22" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v5.2</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-23" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v5.1</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-24" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v5.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-25" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v4.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-26" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v3.1</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-27" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v3.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-28" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v2.1</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-29" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v2.0</div></div></div></div></div></li><li class="MuiTreeItem-root css-14t19hb" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15-30" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-2jyri7"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-hkir54" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">v1.0</div></div></div></div></div></li></div></div></ul></li><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/stable/glossary"><li class="MuiTreeItem-root css-14t19hb" role="treeitem" id="left-nav-treeview-0-16" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-zfdk9c MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-w8t2sr"><div class="MuiBox-root css-3o0h5k"/><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1rc6ywa">术语表</div></div></div></div></div></li></a></ul></div></aside><main class="MuiBox-root css-sb2sd0"><div class="MuiBox-root css-w0vdto"><div class="css-1q5cbag"><div class="MuiBox-root css-was4pq"><div class="MuiContainer-root MuiContainer-maxWidthLg MuiContainer-disableGutters doc-content css-5csqms"><div class="markdown-body MuiBox-root css-0"><h1 id="tidb-640-release-notes" style="position:relative">TiDB 6.4.0 Release Notes<a href="#tidb-640-release-notes" aria-label="tidb 640 release notes permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h1><p>发版日期:2022 年 11 月 17 日</p><p>TiDB 版本:6.4.0-DMR</p><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-1bzshic" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-o4nulc">注意</div><p>TiDB 6.4.0-DMR 的用户文档已<a href="https://docs-archive.pingcap.com/zh/tidb/v6.4" target="_blank" referrerpolicy="no-referrer-when-downgrade">归档</a>。如无特殊需求,建议使用 TiDB 数据库的<a href="https://docs.pingcap.com/zh/tidb/stable" target="_blank" referrerpolicy="no-referrer-when-downgrade">最新 LTS 版本</a>。</p></div></div></div><p>试用链接:<a href="https://docs.pingcap.com/zh/tidb/v6.4/quick-start-with-tidb" target="_blank" referrerpolicy="no-referrer-when-downgrade">快速体验</a> | <a href="https://cn.pingcap.com/product-community/?version=v6.4.0-DMR#version-list" target="_blank" referrerpolicy="no-referrer-when-downgrade">下载离线包</a></p><p>在 6.4.0-DMR 版本中,你可以获得以下关键特性:</p><ul><li>支持通过 <a href="/zh/tidb/stable/sql-statement-flashback-cluster"><code>FLASHBACK CLUSTER TO TIMESTAMP</code></a> 命令将集群快速回退到特定的时间点 (实验特性)。</li><li>支持对 TiDB 实例的<a href="/zh/tidb/stable/configure-memory-usage">全局内存使用进行追踪</a>(实验特性)。</li><li>TiDB 分区表<a href="/zh/tidb/stable/partitioned-table#tidb-对-linear-hash-分区的处理">兼容 LINEAR HASH 分区语法</a>。</li><li>支持高性能、全局单调递增的 <a href="/zh/tidb/stable/auto-increment#mysql-兼容模式"><code>AUTO_INCREMENT</code></a> 列属性(实验特性)。</li><li>支持对 <a href="/zh/tidb/stable/data-type-json">JSON 类型</a>中的 Array 数据做范围选择。</li><li>实现磁盘故障、I/O 无响应等极端情况下的故障恢复加速。</li><li>新增<a href="/zh/tidb/stable/join-reorder#join-reorder-动态规划算法实例">动态规划算法</a>来决定表的连接顺序。</li><li>引入<a href="/zh/tidb/stable/optimizer-hints#no_decorrelate">新的优化器提示 <code>NO_DECORRELATE</code></a> 来控制关联优化的解除。</li><li><a href="/zh/tidb/stable/dashboard-diagnostics-access">集群诊断功能</a> GA。</li><li><a href="/zh/tidb/stable/encryption-at-rest#tiflash">TiFlash 静态加密</a>支持国密算法 SM4。</li><li>支持通过 SQL 语句立即对指定分区的 TiFlash 副本进行<a href="/zh/tidb/stable/sql-statement-alter-table-compact">物理数据整理 (Compaction)</a>。</li><li>支持<a href="https://docs.pingcap.com/zh/tidb-in-kubernetes/v1.4/backup-to-aws-s3-by-snapshot" target="_blank" referrerpolicy="no-referrer-when-downgrade">基于 AWS EBS snapshot 的集群备份和恢复</a>。</li><li>支持在分库分表合并迁移场景中<a href="/zh/tidb/stable/dm-table-routing#提取分库分表数据源信息写入合表">标记下游表中的数据来自上游哪个分库、分表和数据源</a>。</li></ul><h2 id="新功能" style="position:relative">新功能<a href="#%E6%96%B0%E5%8A%9F%E8%83%BD" aria-label="新功能 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h2><h3 id="sql" style="position:relative">SQL<a href="#sql" aria-label="sql permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>支持通过 SQL 语句立即对指定分区的 TiFlash 副本进行物理数据整理 (Compaction) <a href="https://github.com/pingcap/tiflash/issues/5315" target="_blank" referrerpolicy="no-referrer-when-downgrade">#5315</a> @<a href="https://github.com/hehechen" target="_blank" referrerpolicy="no-referrer-when-downgrade">hehechen</a></p><p> TiDB v6.2.0 发布了针对全表的 TiFlash 副本立即进行<a href="/zh/tidb/stable/sql-statement-alter-table-compact#alter-table--compact">物理数据整理 (Compaction)</a> 的功能,支持用户自行选择合适的时机,手动执行 SQL 语句立即对 TiFlash 中的物理数据进行整理,从而减少存储空间占用,并提升查询性能。v6.4.0 细化了 TiFlash 副本数据整理的粒度,支持对表中指定分区的 TiFlash 副本立即进行数据整理。</p><p> 通过 SQL 语句 <code>ALTER TABLE table_name COMPACT [PARTITION PartitionNameList] [engine_type REPLICA]</code>,你可以立即对指定分区的 TiFlash 副本进行数据整理。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/sql-statement-alter-table-compact#对分区表中指定分区的-tiflash-副本进行数据整理">用户文档</a>。</p></li><li><p>支持通过 <code>FLASHBACK CLUSTER TO TIMESTAMP</code> 命令将集群快速回退到特定的时间点(实验特性)<a href="https://github.com/pingcap/tidb/issues/37197" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37197</a> <a href="https://github.com/tikv/tikv/issues/13303" target="_blank" referrerpolicy="no-referrer-when-downgrade">#13303</a> @<a href="https://github.com/Defined2014" target="_blank" referrerpolicy="no-referrer-when-downgrade">Defined2014</a> @<a href="https://github.com/bb7133" target="_blank" referrerpolicy="no-referrer-when-downgrade">bb7133</a> @<a href="https://github.com/JmPotato" target="_blank" referrerpolicy="no-referrer-when-downgrade">JmPotato</a> @<a href="https://github.com/Connor1996" target="_blank" referrerpolicy="no-referrer-when-downgrade">Connor1996</a> @<a href="https://github.com/HuSharp" target="_blank" referrerpolicy="no-referrer-when-downgrade">HuSharp</a> @<a href="https://github.com/CalvinNeo" target="_blank" referrerpolicy="no-referrer-when-downgrade">CalvinNeo</a></p><p> <code>FLASHBACK CLUSTER TO TIMESTAMP</code> 支持在 Garbage Collection (GC) life time 内快速回退整个集群到指定的时间点。使用该特性可以快速撤消 DML 误操作。例如,在误执行了没有 <code>WHERE</code> 子句的 <code>DELETE</code> 后,使用 <code>FLASHBACK CLUSTER TO TIMESTAMP</code> 能够在几分钟内将集群数据恢复到指定的时间点。该特性不依赖于数据库备份,并支持在时间线上多次回退以确定特定数据更改发生的时间。需要注意的是,<code>FLASHBACK CLUSTER TO TIMESTAMP</code> 不能替代数据库备份。</p><p> 在执行 <code>FLASHBACK CLUSTER TO TIMESTAMP</code> 之前,需要暂停 PITR 和 TiCDC 等工具上运行的同步任务,待 <code>FLASHBACK</code> 执行完成后再启动,否则会造成同步失败等问题。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/sql-statement-flashback-cluster">用户文档</a>。</p></li><li><p>支持通过 <code>FLASHBACK DATABASE</code> 命令来恢复被删除的数据库 <a href="https://github.com/pingcap/tidb/issues/20463" target="_blank" referrerpolicy="no-referrer-when-downgrade">#20463</a> @<a href="https://github.com/erwadba" target="_blank" referrerpolicy="no-referrer-when-downgrade">erwadba</a></p><p> <code>FLASHBACK DATABASE</code> 支持在 Garbage Collection (GC) life time 时间内恢复被 <code>DROP</code> 删除的数据库以及数据。该特性不依赖任何外部工具,可以轻松快速地通过 SQL 语句进行数据和元信息的恢复。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/sql-statement-flashback-database">用户文档</a>。</p></li></ul><h3 id="安全" style="position:relative">安全<a href="#%E5%AE%89%E5%85%A8" aria-label="安全 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>TiFlash 静态加密支持国密算法 SM4 <a href="https://github.com/pingcap/tiflash/issues/5953" target="_blank" referrerpolicy="no-referrer-when-downgrade">#5953</a> @<a href="https://github.com/lidezhu" target="_blank" referrerpolicy="no-referrer-when-downgrade">lidezhu</a></p><p> TiFlash 的静态加密新增 SM4 算法,你可以将配置文件 <code>tiflash-learner.toml</code> 中的 <code>data-encryption-method</code> 参数的值设置为 <code>sm4-ctr</code>,以启用基于国密算法 SM4 的静态加密能力。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/encryption-at-rest#tiflash">用户文档</a>。</p></li></ul><h3 id="可观测性" style="position:relative">可观测性<a href="#%E5%8F%AF%E8%A7%82%E6%B5%8B%E6%80%A7" aria-label="可观测性 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>集群诊断功能 GA <a href="https://github.com/pingcap/tidb-dashboard/issues/1438" target="_blank" referrerpolicy="no-referrer-when-downgrade">#1438</a> @<a href="https://github.com/Hawkson-jee" target="_blank" referrerpolicy="no-referrer-when-downgrade">Hawkson-jee</a></p><p> <a href="/zh/tidb/stable/dashboard-diagnostics-access">集群诊断功能</a>是在指定的时间范围内,对集群可能存在的问题进行诊断,并将诊断结果和一些集群相关的负载监控信息汇总成一个<a href="/zh/tidb/stable/dashboard-diagnostics-report">诊断报告</a>。诊断报告是网页形式,通过浏览器保存后可离线浏览和传阅。</p><p> 你可以通过该报告快速了解集群内的基本诊断信息,包括负载、组件、耗时和配置信息。若集群存在一些常见问题,在<a href="/zh/tidb/stable/dashboard-diagnostics-report#诊断信息">诊断信息</a>部分可以了解 TiDB 内置自动诊断的结果。</p></li></ul><h3 id="性能" style="position:relative">性能<a href="#%E6%80%A7%E8%83%BD" aria-label="性能 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>引入 Coprocessor Task 并发度自适应机制 <a href="https://github.com/pingcap/tidb/issues/37724" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37724</a> @<a href="https://github.com/you06" target="_blank" referrerpolicy="no-referrer-when-downgrade">you06</a></p><p> 随着 Coprocessor Task 任务数增加,TiDB 将结合 TiKV 处理速度自动增加任务并发度(调整 <a href="/zh/tidb/stable/system-variables#tidb_distsql_scan_concurrency"><code>tidb_distsql_scan_concurrency</code></a>),减少 Coprocessor Task 任务排队,降低延迟。</p></li><li><p>新增动态规划算法来决定表的连接顺序 <a href="https://github.com/pingcap/tidb/issues/37825" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37825</a> @<a href="https://github.com/winoros" target="_blank" referrerpolicy="no-referrer-when-downgrade">winoros</a></p><p> 在之前的版本中,TiDB 采用贪心算法来决定表的连接顺序。在 v6.4.0 中,优化器引入了<a href="/zh/tidb/stable/join-reorder#join-reorder-动态规划算法实例">动态规划算法</a>。相比贪心算法,动态规划算法会枚举更多可能的连接顺序,进而有机会发现更好的执行计划,提升部分场景下 SQL 执行效率。</p><p> 由于动态规划算法的枚举过程可能消耗更多的时间,目前 Join Reorder 算法由变量 <a href="/zh/tidb/stable/system-variables#tidb_opt_join_reorder_threshold"><code>tidb_opt_join_reorder_threshold</code></a> 控制,当参与 Join Reorder 的节点个数大于该阈值时选择贪心算法,反之选择动态规划算法。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/join-reorder">用户文档</a>。</p></li><li><p>前缀索引支持对空值进行过滤 <a href="https://github.com/pingcap/tidb/issues/21145" target="_blank" referrerpolicy="no-referrer-when-downgrade">#21145</a> @<a href="https://github.com/xuyifangreeneyes" target="_blank" referrerpolicy="no-referrer-when-downgrade">xuyifangreeneyes</a></p><p> 该特性是对前缀索引使用上的优化。当表中某列存在前缀索引,那么 SQL 语句中对该列的 <code>IS NULL</code> 或 <code>IS NOT NULL</code> 条件可以直接利用前缀进行过滤,避免了这种情况下的回表,提升了 SQL 语句的执行性能。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/system-variables#tidb_opt_prefix_index_single_scan-从-v640-版本开始引入">用户文档</a>。</p></li><li><p>增强 TiDB Chunk 复用机制 <a href="https://github.com/pingcap/tidb/issues/38606" target="_blank" referrerpolicy="no-referrer-when-downgrade">#38606</a> @<a href="https://github.com/keeplearning20221" target="_blank" referrerpolicy="no-referrer-when-downgrade">keeplearning20221</a></p><p> 在之前的版本中,TiDB 只在 <code>writechunk</code> 函数中复用 Chunk。TiDB v6.4.0 扩展 Chunk 复用机制到 Executor 的算子中,通过复用 Chunk 减少 TiDB 申请释放内存频率,进而提升部分场景下的 SQL 查询执行效率。你可以通过系统变量 <a href="/zh/tidb/stable/system-variables#tidb_enable_reuse_chunk-从-v640-版本开始引入"><code>tidb_enable_reuse_chunk</code></a> 来控制是否启用 Chunk 对象复用,默认为开启。</p></li><li><p>引入新的优化器提示 <code>NO_DECORRELATE</code> 来控制关联优化的解除 <a href="https://github.com/pingcap/tidb/issues/37789" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37789</a> @<a href="https://github.com/time-and-fate" target="_blank" referrerpolicy="no-referrer-when-downgrade">time-and-fate</a></p><p> 默认情况下,TiDB 总是会尝试重写关联子查询以解除关联,这通常会提高执行效率。但是在一部分场景下,解除关联反而会降低执行效率。TiDB 在 v6.4.0 版本中引入了 hint <code>NO_DECORRELATE</code>,用来提示优化器不要对指定的查询块解除关联,以提升部分场景下的查询性能。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/optimizer-hints#no_decorrelate">用户文档</a>。</p></li><li><p>提升了分区表统计信息收集的性能 <a href="https://github.com/pingcap/tidb/issues/37977" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37977</a> @<a href="https://github.com/Yisaer" target="_blank" referrerpolicy="no-referrer-when-downgrade">Yisaer</a></p><p> 在 v6.4.0 版本中,TiDB 优化了分区表统计信息的收集策略。你可以通过系统变量 <a href="/zh/tidb/stable/system-variables#tidb_auto_analyze_partition_batch_size-从-v640-版本开始引入"><code>tidb_auto_analyze_partition_batch_size</code></a> 定义并发度,用并行的方式同时收集多个分区的统计信息,从而加快统计信息收集的速度,减少 analyze 所需的时间。</p></li></ul><h3 id="稳定性" style="position:relative">稳定性<a href="#%E7%A8%B3%E5%AE%9A%E6%80%A7" aria-label="稳定性 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>磁盘故障、I/O 无响应等极端情况下的故障恢复加速 <a href="https://github.com/tikv/tikv/issues/13648" target="_blank" referrerpolicy="no-referrer-when-downgrade">#13648</a> @<a href="https://github.com/LykxSassinator" target="_blank" referrerpolicy="no-referrer-when-downgrade">LykxSassinator</a></p><p> 数据库的可用性是企业用户最为关注的指标之一,但是在复杂的硬件环境下,如何快速检测故障并恢复一直是数据库面临的挑战之一。TiDB v6.4.0 全面优化了 TiKV 节点的状态检测机制。即使在磁盘故障或 I/O 无响应等极端情况下,TiDB 依然可以快速上报节点状态,同时搭配主动唤醒机制,提前发起 Leader 选举,加速集群自愈。通过这次优化,TiDB 在磁盘故障场景下,集群恢复时间可以缩短 50% 左右。</p></li><li><p>TiDB 全局内存控制(实验特性)<a href="https://github.com/pingcap/tidb/issues/37816" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37816</a> @<a href="https://github.com/wshwsh12" target="_blank" referrerpolicy="no-referrer-when-downgrade">wshwsh12</a></p><p> v6.4.0 引入了全局内存控制,对 TiDB 实例的全局内存使用进行追踪。你可以通过系统变量 <a href="/zh/tidb/stable/system-variables#tidb_server_memory_limit-从-v640-版本开始引入"><code>tidb_server_memory_limit</code></a> 设置全局内存的使用上限。当内存使用量接近预设的上限时,TiDB 会尝试对内存进行回收,释放更多的可用内存;当内存使用量超出预设的上限时,TiDB 会识别出当前内存使用量最大的 SQL 操作,并取消这个操作,避免因为内存使用过度而产生的系统性问题。</p><p> 当 TiDB 实例的内存消耗存在潜在风险时,TiDB 会预先收集诊断信息并写入指定目录,方便对问题的诊断。同时,TiDB 提供了系统表视图 <a href="/zh/tidb/stable/information-schema-memory-usage"><code>INFORMATION_SCHEMA.MEMORY_USAGE</code></a> 和 <a href="/zh/tidb/stable/information-schema-memory-usage-ops-history"><code>INFORMATION_SCHEMA.MEMORY_USAGE_OPS_HISTORY</code></a> 用来展示内存使用情况及历史操作,帮助用户清晰了解内存使用状况。</p><p> 全局内存控制是 TiDB 内存管理的重要一步,对实例采用全局视角,引入系统性方法对内存用量进行管理,这可以极大提升数据库的稳定性,提高服务的可用性,支持 TiDB 在更多重要场景平稳运行。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/configure-memory-usage">用户文档</a>。</p></li><li><p>控制优化器在构造范围时的内存占用 <a href="https://github.com/pingcap/tidb/issues/37176" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37176</a> @<a href="https://github.com/xuyifangreeneyes" target="_blank" referrerpolicy="no-referrer-when-downgrade">xuyifangreeneyes</a></p><p> v6.4.0 引入了系统变量 <a href="/zh/tidb/stable/system-variables#tidb_opt_range_max_size-从-v640-版本开始引入"><code>tidb_opt_range_max_size</code></a> 来限制优化器在构造范围时消耗的内存上限。当内存使用超出这个限制,则放弃构造精确的范围,转而构建更粗粒度的范围,以此降低内存消耗。当 SQL 语句中的 <code>IN</code> 条件较多时,这个优化可以显著降低编译时的内存使用量,保证系统的稳定性。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/system-variables#tidb_opt_range_max_size-从-v640-版本开始引入">用户文档</a>。</p></li><li><p>支持统计信息的同步加载(GA)<a href="https://github.com/pingcap/tidb/issues/37434" target="_blank" referrerpolicy="no-referrer-when-downgrade">#37434</a> @<a href="https://github.com/chrysan" target="_blank" referrerpolicy="no-referrer-when-downgrade">chrysan</a></p><p> TiDB v6.4.0 起,正式开启了统计信息同步加载的特性(默认开启),支持在执行当前 SQL 语句时将直方图、TopN、CMSketch 等占用空间较大的统计信息同步加载到内存,提高优化该 SQL 语句时统计信息的完整性。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/system-variables#tidb_stats_load_sync_wait-从-v540-版本开始引入">用户文档</a>。</p></li><li><p>降低批量写入请求对轻量级事务写入的响应时间的影响 <a href="https://github.com/tikv/tikv/issues/13313" target="_blank" referrerpolicy="no-referrer-when-downgrade">#13313</a> @<a href="https://github.com/glorv" target="_blank" referrerpolicy="no-referrer-when-downgrade">glorv</a></p><p> 定时批量 DML 任务存在于一部分系统的业务逻辑中。在此场景下,处理这些批量写入任务会增加在线交易的时延。在 v6.3.0 中,TiKV 对混合负载场景下读请求的优先级进行了优化,你可以通过 <a href="/zh/tidb/stable/tikv-configuration-file#auto-adjust-pool-size-从-v630-版本开始引入"><code>readpool.unified.auto-adjust-pool-size</code></a> 配置项开启 TiKV 对统一处理读请求的线程池 (UnifyReadPool) 大小的自动调整。在 v6.4.0 中,TiKV 对写入请求也进行了动态识别和优先级调整,控制 Apply 线程每一轮处理单个状态机写入的最大数据量,从而降低批量写入对交易事务写入的响应时间的影响。</p></li></ul><h3 id="易用性" style="position:relative">易用性<a href="#%E6%98%93%E7%94%A8%E6%80%A7" aria-label="易用性 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>TiKV API V2 成为正式功能 <a href="https://github.com/tikv/tikv/issues/11745" target="_blank" referrerpolicy="no-referrer-when-downgrade">#11745</a> @<a href="https://github.com/pingyu" target="_blank" referrerpolicy="no-referrer-when-downgrade">pingyu</a></p><p> 在 v6.1.0 之前,TiKV 的 RawKV 接口仅存储客户端传入的原始数据,因此只提供基本的 Key-Value 读写能力。此外,由于编码方式不同、数据范围没有隔离等,同一个 TiKV 集群中,TiDB、事务 KV、RawKV 无法同时使用,因此对于不同使用方式并存的场景,必须部署多个集群,增加了机器和部署成本。</p><p> TiKV API V2 提供了新的存储格式,功能亮点如下:</p><ul><li>RawKV 数据以 MVCC 方式存储,记录数据的变更时间戳,并在此基础上提供 Change Data Capture 能力(实验特性,见 <a href="https://github.com/tikv/migration/blob/main/cdc/README.md" target="_blank" referrerpolicy="no-referrer-when-downgrade">TiKV-CDC</a>)。</li><li>数据根据使用方式划分范围,支持单一集群 TiDB、事务 KV、RawKV 应用共存。</li><li>预留 Key Space 字段,为多租户等特性提供支持。</li></ul><p>你可以通过在 TiKV 的 <code>[storage]</code> 配置中设置 <code>api-version = 2</code> 来启用 TiKV API V2。</p><p>更多信息,请参考<a href="/zh/tidb/stable/tikv-configuration-file#api-version-从-v610-版本开始引入">用户文档</a>。</p></li><li><p>优化 TiFlash 数据同步进度的准确性 <a href="https://github.com/pingcap/tiflash/issues/4902" target="_blank" referrerpolicy="no-referrer-when-downgrade">#4902</a> @<a href="https://github.com/hehechen" target="_blank" referrerpolicy="no-referrer-when-downgrade">hehechen</a></p><p> TiDB 的 <code>INFORMATION_SCHEMA.TIFLASH_REPLICA</code> 表中的 <code>PROGRESS</code> 字段表示 TiFlash 副本与 TiKV 中对应表数据的同步进度。在之前的版本中,<code>PROCESS</code> 字段只显示 TiFlash 副本创建过程中的数据同步进度。在 TiFlash 副本创建完后,当在 TiKV 相应的表中导入新的数据时,该值不会更新数据的同步进度。</p><p> v6.4.0 版本改进了 TiFlash 副本数据同步进度更新机制。在创建 TiFlash 副本后,进行数据导入等操作,TiFlash 副本需要和 TiKV 数据进行同步时,<a href="/zh/tidb/stable/information-schema-tiflash-replica"><code>INFORMATION_SCHEMA.TIFLASH_REPLICA</code></a> 表中的 <code>PROGRESS</code> 值将会更新,显示实际的数据同步进度。通过此优化,你可以方便地查看 TiFlash 数据同步的实际进度。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/information-schema-tiflash-replica">用户文档</a>。</p></li></ul><h3 id="mysql-兼容性" style="position:relative">MySQL 兼容性<a href="#mysql-%E5%85%BC%E5%AE%B9%E6%80%A7" aria-label="mysql 兼容性 permalink" class="anchor after"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a></h3><ul><li><p>TiDB 分区表兼容 Linear Hash 分区语法 <a href="https://github.com/pingcap/tidb/issues/38450" target="_blank" referrerpolicy="no-referrer-when-downgrade">#38450</a> @<a href="https://github.com/mjonss" target="_blank" referrerpolicy="no-referrer-when-downgrade">mjonss</a></p><p> TiDB 现有的分区方式支持 Hash、Range、List 分区。TiDB v6.4.0 增加了对 <a href="https://dev.mysql.com/doc/refman/5.7/en/partitioning-linear-hash.html" target="_blank" referrerpolicy="no-referrer-when-downgrade">MySQL LINEAR HASH</a> 分区语法的兼容。</p><p> 在 TiDB 上,你可以直接执行原有的 MySQL Linear Hash 分区的 DDL 语句,TiDB 将创建一个常规的非线性 Hash 分区表(注意 TiDB 内部实际不存在 LINEAR HASH 分区)。你也可以直接执行原有的 MySQL LINEAR HASH 分区的 DML 语句,TiDB 将正常返回对应的 TiDB Hash 分区的查询结果。此功能保证了 TiDB 对 MySQL LINEAR HASH 分区的语法兼容,方便基于 MySQL 的应用无缝迁移到 TiDB。</p><p> 当分区数是 2 的幂时,TiDB Hash 分区表中行的分布情况与 MySQL Linear Hash 分区表相同,但当分区数不是 2 的幂时,TiDB Hash 分区表中行的分布情况与 MySQL Linear Hash 分区表会有所区别。</p><p> 更多信息,请参考<a href="/zh/tidb/stable/partitioned-table#tidb-对-linear-hash-分区的处理">用户文档</a>。</p></li><li><p>支持高性能、全局单调递增的 <code>AUTO_INCREMENT</code> 列属性(实验特性)<a href="https://github.com/pingcap/tidb/issues/38442" target="_blank" referrerpolicy="no-referrer-when-downgrade">#38442</a> @<a href="https://github.com/tiancaiamao" target="_blank" referrerpolicy="no-referrer-when-downgrade">tiancaiamao</a></p><p> TiDB v6.4.0 引入了 <code>AUTO_INCREMENT</code> 的 MySQL 兼容模式,通过中心化分配自增 ID,实现了自增 ID 在所有 TiDB 实例上单调递增。使用该特性能够更容易地实现查询结果按自增 ID 排序。要使用 MySQL 兼容模式,你需要在建表时将 <code>AUTO_ID_CACHE</code> 设置为 <code>1</code>。</p><pre><code class="hljs language-sql"><div class="MuiBox-root css-1qhimia"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">TABLE</span> t(a <span class="hljs-type">int</span> AUTO_INCREMENT key) AUTO_ID_CACHE <span class="hljs-number">1</span>; </div><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-1rmx1rm" tabindex="0" type="button" aria-label="Toggle code wrap"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="WrapTextIcon"><path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/></svg></button><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-fxo539" tabindex="0" type="button" aria-label="copy"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ContentCopyIcon"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg></button></code></pre><p> 更多信息,请参考<a href="/zh/tidb/stable/auto-increment#mysql-兼容模式">用户文档</a>。</p></li><li><p>支持对 JSON 类型中的 Array 数据做范围选择 <a href="https://github.com/tikv/tikv/issues/13644" target="_blank" referrerpolicy="no-referrer-when-downgrade">#13644</a> @<a href="https://github.com/YangKeao" target="_blank" referrerpolicy="no-referrer-when-downgrade">YangKeao</a></p><p> 从 v6.4.0 起,TiDB 支持 <a href="https://dev.mysql.com/doc/refman/8.0/en/json.html#json-paths" target="_blank" referrerpolicy="no-referrer-when-downgrade">MySQL 兼容的范围选择语法</a>。</p><ul><li><p>通过关键字 <code>to</code>,你可以指定元素起始和结束的位置,并选择 Array 中连续范围的元素,起始位置记为 <code>0</code>。例如,使用 <code>$[0 to 2]</code> 可以选择 Array 中的前三个元素。</p></li><li><p>通过关键字 <code>last</code>,你可以指定 Array 中最后一个元素的位置,实现从右到左的位置设定。例如,使用 <code>$[last-2 to last]</code> 可以选择 Array 中的最后三个元素。</p><p>该特性简化了 SQL 的编写过程,进一步提升了 JSON 类型的兼容能力,降低了 MySQL 应用向 TiDB 迁移的难度。</p></li></ul></li><li><p>支持对数据库用户增加额外说明 <a href="https://github.com/pingcap/tidb/issues/38172" target="_blank" referrerpolicy="no-referrer-when-downgrade">#38172</a> @<a href="https://github.com/CbcWestwolf" target="_blank" referrerpolicy="no-referrer-when-downgrade">CbcWestwolf</a></p><p> 在 TiDB v6.4.0 中,你可以通过 <a href="/zh/tidb/stable/sql-statement-create-user"><code>CREATE USER</code></a> 或 <a href="/zh/tidb/stable/sql-statement-alter-user"><code>ALTER USER</code></a> 语句为数据库用户添加额外的说明信息。TiDB 提供了两种说明格式,你可以通过 <code>COMMENT</code> 添加一段文本注释,也可以通过 <code>ATTRIBUTE</code> 添加一组 JSON 格式的结构化属性。</p><p> 此外,TiDB v6.4.0 新增了 <a href="/zh/tidb/stable/information-schema-user-attributes"><code>USER_ATTRIBUTES</code></a> 表。你可以在该表中查看用户的注释和属性信息。</p><pre><code class="hljs language-sql"><div class="MuiBox-root css-1qhimia"><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'newuser1'</span>@<span class="hljs-string">'%'</span> COMMENT <span class="hljs-string">'This user is created only for test'</span>; <span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">USER</span> <span class="hljs-string">'newuser2'</span>@<span class="hljs-string">'%'</span> ATTRIBUTE <span class="hljs-string">'{"email": "user@pingcap.com"}'</span>; <span class="hljs-keyword">SELECT</span> <span class="hljs-operator">*</span> <span class="hljs-keyword">FROM</span> INFORMATION_SCHAME.USER_ATTRIBUTES; </div><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-1rmx1rm" tabindex="0" type="button" aria-label="Toggle code wrap"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="WrapTextIcon"><path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/></svg></button><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-fxo539" tabindex="0" type="button" aria-label="copy"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ContentCopyIcon"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg></button></code></pre><pre><code class="hljs language-sql"><div class="MuiBox-root css-1qhimia"><span class="hljs-operator">+</span><span class="hljs-comment">-----------+------+---------------------------------------------------+</span> <span class="hljs-operator">|</span> <span class="hljs-keyword">USER</span> <span class="hljs-operator">|</span> HOST <span class="hljs-operator">|</span> ATTRIBUTE <span class="hljs-operator">|</span>
推荐文章
大方的柑橘
·
普法动态_法治你我他 | 借钱的时候要怎么做才能保障自己的权益?跟着律师一起来了解_英德市人民政府网
4 月前
踢足球的南瓜
·
全网最全漫画软件,适宜一个人钻被窝看!_哔哩哔哩_bilibili
8 月前
至今单身的伏特加
·
斗罗:开局为比比东算命觉醒异火最新章节全文无弹窗在线阅读-QQ阅读男生网
11 月前
另类的萝卜
·
次元战争红�%B - 搜狗图片搜索
1 年前
温暖的乒乓球
·
孙立坚:全球金融市场复盘!危机的根源在哪里? - 评论 - 复旦大学一带一路及全球治理研究院
1 年前