douliang1900 2014-12-28 17:37
浏览 68
已采纳

我应该只使用myisam或innodb作为我的mysql DB [关闭]

I am not sure if I should use myisam or innodb for my mysql DB.

My needs:

I will use full-text search. Both myisam and innodb support this since mysql 5.6

I will only do inner-joins between different tables

About 75% of all queries will be SELECT, that has inner-joins

Will myisam be best for me consider the stuff above?

Also, can I do inner-joins between one table that runs myisam to a table that runs innodb?

Eg my users table is innoDB, I do a inner-join from that table to the product table that runs on myisam. In order to get all products for a user.

  • 写回答

1条回答 默认 最新

  • doulvyi2172 2014-12-28 18:40
    关注

    The information you have written here, what you are looking for, does not state which one of the engines would fit you better. Both meets your requirements.

    A very simplified way to determine what engine suites you better is if you are looking for speed or consistency, eg: myisam for speed and innodb for consistency, but you will then need to work with FK constraints. The comment of Hanky that linked to MyISAM versus InnoDB tells you more about the differences.


    If you are looking to do a full-text index, you could also have a look at sphinx

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#网络安全#的问题:求ensp的网络安全,不要步骤要完成版文件
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥20 使用Photon PUN2解决游戏得分同步的问题
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序