<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        Fine-TuningMySQLFull-TextSearchwithInnoDB_MySQL

        來源:懂視網 責編:小采 時間:2020-11-09 20:04:09
        文檔

        Fine-TuningMySQLFull-TextSearchwithInnoDB_MySQL

        Fine-TuningMySQLFull-TextSearchwithInnoDB_MySQL:If you are using FULLTEXT indexes in MySQL and plan to switch from MyISAM to InnoDB then you should review the reference manual section onFine-Tuning MySQL Full-Text Searchto see what configuration changes may be required. As I mentioned in
        推薦度:
        導讀Fine-TuningMySQLFull-TextSearchwithInnoDB_MySQL:If you are using FULLTEXT indexes in MySQL and plan to switch from MyISAM to InnoDB then you should review the reference manual section onFine-Tuning MySQL Full-Text Searchto see what configuration changes may be required. As I mentioned in

        If you are using FULLTEXT indexes in MySQL and plan to switch from MyISAM to InnoDB then you should review the reference manual section onFine-Tuning MySQL Full-Text Searchto see what configuration changes may be required. As I mentioned inyesterday’s postwhen comparing query results on my database with FULLTEXT indexes in MyISAM versus InnoDB I got different results. Specifically, the InnoDB tables were returning fewer results for certain queries with short FULLTEXT search terms. Here’s an example of a query that returned fewer results on InnoDB:

        select idfrom flite.ad_indexwhere match(name,description,keywords) against('+v1*' IN BOOLEAN MODE);

        The issue was that all of the fine tuning I had done before was limited to MyISAM, so it didn’t affect InnoDB. In the past I configured MySQL FULLTEXT search to index words as short as 1 character (the default is 3), and to index common words (not to use any stopword list). These are the relevant variables I set in in my.cnf:

        ft_min_word_len = 1ft_stopword_file = ''

        InnoDB has its own variables to control stopwords and minimum word length, so I needed to set these variables when I changed the tables from MyISAM to InnoDB:

        innodb_ft_min_token_size = 1innodb_ft_enable_stopword = OFF

        Since those variables are not dynamic, I had to restart MySQL for them to take effect. Furthermore, I needed to rebuild the FULLTEXT indexes on the relevant tables. This is howthe manualinstructs you to rebuld the indexes:

        To rebuild the FULLTEXT indexes for an InnoDB table, use ALTER TABLE with the DROP INDEX and ADD INDEX options to drop and re-create each index.

        Rather than drop and recreate the indexes, I just usedALTER TABLE ... FORCEto rebuild the table (and indexes), like this:

        alter table flite.ad_index force;

        After making those changes I re-ranpt-upgrade, and now I am getting the same set of rows back from MyISAM and InnoDB. The order of the rows is slightly different in some cases, but as I mentioned yesterday that isexpected behavior.

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        Fine-TuningMySQLFull-TextSearchwithInnoDB_MySQL

        Fine-TuningMySQLFull-TextSearchwithInnoDB_MySQL:If you are using FULLTEXT indexes in MySQL and plan to switch from MyISAM to InnoDB then you should review the reference manual section onFine-Tuning MySQL Full-Text Searchto see what configuration changes may be required. As I mentioned in
        推薦度:
        標簽: my mysql fu
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲情a成黄在线观看动漫尤物| 午夜免费福利网站| 亚洲最大av无码网址| 亚洲日韩一区精品射精| 99久久免费精品国产72精品九九 | 亚洲成AV人片在线观看无| 国产精品免费久久久久久久久| 国产精品亚洲综合一区| 中文无码日韩欧免费视频| 亚洲成在人线av| 5g影院5g天天爽永久免费影院| 亚洲一级大黄大色毛片| 日本免费网站观看| 美女扒开屁股让男人桶爽免费| 亚洲AV无码一区二区三区在线观看 | 亚洲精品在线不卡| 国产情侣激情在线视频免费看| 亚洲av成人综合网| 国产一区二区三区免费看| 国产特黄特色的大片观看免费视频| 亚洲一区二区三区香蕉| 日本卡1卡2卡三卡免费| 亚洲图片激情小说| 国产美女做a免费视频软件| jizz在线免费播放| 91在线精品亚洲一区二区| 最新仑乱免费视频| 色老头综合免费视频| 亚洲AV中文无码字幕色三| 中国在线观看免费高清完整版| 国产成人亚洲精品播放器下载| 久久激情亚洲精品无码?V| 99爱免费观看视频在线| 亚洲色偷精品一区二区三区| 亚洲午夜精品久久久久久浪潮| 免费国产黄网站在线观看视频| 亚洲综合在线一区二区三区| 中文字幕在亚洲第一在线| 麻豆一区二区免费播放网站| 西西人体大胆免费视频| 亚洲男人电影天堂|