您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

MySQL Integer与DateTime索引

MySQL Integer与DateTime索引

我的直觉是说int总是更快。但是,事实并非如此

http://gpshumano.blogs.dri.pt/2009/07/06/mysql-datetime-vs-timestamp-vs-int- performance-and-benchmarking-with- myisam/

编辑添加:我意识到您使用的是InnoDB,而不是MyISAM,但是在InnoDB案例中,我没有发现任何与此矛盾的东西。另外,同一位作者进行了InnoDB测试

http://gpshumano.blogs.dri.pt/2009/07/06/mysql-datetime-vs-timestamp-vs-int- performance-and-benchmarking-with- innodb/

MySQL 2022/1/1 18:16:03 有488人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶