<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
        主站蜘蛛池模板: 免费**毛片在线播放直播| 免费91麻豆精品国产自产在线观看| 18国产精品白浆在线观看免费| 亚洲视频精品在线观看| 国产精品区免费视频| 亚洲av最新在线网址| 久久一区二区三区免费播放| 亚洲国产精品线在线观看| 香蕉成人免费看片视频app下载| 精品亚洲aⅴ在线观看| 四虎在线最新永久免费| 亚洲国产精品成人精品软件| 成人奭片免费观看| 国产精品亚洲一区二区在线观看 | 午夜亚洲国产精品福利| 亚洲精品第一国产综合精品99| 老司机福利在线免费观看| 亚洲精品字幕在线观看| 鲁大师在线影院免费观看| 99999久久久久久亚洲| 国产一级淫片a免费播放口之| 日韩免费在线中文字幕| 国产V亚洲V天堂无码| 国产免费久久精品99re丫y| 成人精品国产亚洲欧洲| 亚洲va中文字幕无码久久不卡| 在免费jizzjizz在线播| 日韩欧美亚洲国产精品字幕久久久| 亚洲精品色婷婷在线影院| 99久久国产免费中文无字幕| 亚洲色偷偷偷综合网| 亚洲午夜久久久影院| 毛片免费观看网址| 成人无码区免费A∨直播| 亚洲六月丁香婷婷综合| 久久精品国产亚洲7777| 免费福利视频导航| 永久免费精品影视网站| 亚洲熟妇无码久久精品| 亚洲欧洲日本在线| 国产卡二卡三卡四卡免费网址|