Home > Database > Mysql Tutorial > MyISAM对大字段表的查询支持_MySQL

MyISAM对大字段表的查询支持_MySQL

WBOY
Release: 2016-06-01 14:01:15
Original
927 people have browsed it

大家好:

  我有一个表用MyISAM做存储引擎,其中含有三个BLOG字段用来存图片,当这个表有1800多条记录时,对主键进行查询(不查三个BLOG字段),需要要20多秒。当把存储引擎换成InnoDB时,几乎瞬间完成。

  我不明白,不是MyISAM比较快吗,还是MyISAM对大字段查询支持不太好。

  mysql对于myisam 表,只会把索引放到内存里面, data文件用的是操作系统的I/O buffer.

  innodb 索引和数据都是同一个文件,在内存足够的情况下,其实都在内存里面..

  另外,不建议用mysql来存放数据...图片,大文件这种.. 效率比较低

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template