MyISAM表,如果只select、insert的话,并发性如何?

diffmaker 2012-08-17 10:53:27
如题。如果只进行select和insert的话,会锁表吗?并发处理能力如何?
...全文
150 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zecool20 2012-08-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
select 不锁表。
但MYISAM中INSERT会锁表。
[/Quote]

学习了!
rucypli 2012-08-19
  • 打赏
  • 举报
回复
insert也可以和select并发

If AUTO (the default), MySQL permits INSERT and SELECT statements to run concurrently for MyISAM tables that have no free blocks in the middle of the data file. If you start mysqld with --skip-new, this variable is set to NEVER.
ACMAIN_CHM 2012-08-17
  • 打赏
  • 举报
回复
select 不锁表。
但MYISAM中INSERT会锁表。
rucypli 2012-08-17
  • 打赏
  • 举报
回复
在默认的隔离级别由于有mvcc 所以select不锁定任何东西

insert只会锁定当前行

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧