0

I read this on URL: http://docs.oracle.com/cd/E17952_01/refman-5.5-en/optimizing-myisam-bulk-data-loading.html

If you lock table before you insert and unlock it after that. The speed will increase 40% faster than not locking.

I don't know if Zend Framework does lock table before insert or not?

4

1 回答 1

2
  1. ZF 不会自己锁定它。如果您愿意 - 您必须手动执行此操作。
  2. 确切的改进是非常具体的。没有人能说如果你锁定你会赢多少(或输多少,谁知道)。

如果您的应用程序没有遇到任何性能问题 - 不要那样做。如果您确实遇到任何性能问题 - 从分析开始并找出问题的确切原因。

PS:mysql 文档中的那句话非常投机。

于 2012-09-12T20:39:50.280 回答