首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

数据库进阶5 Mysql 性能优化20个原则(3)

无缓冲的查询 关于这个事情,在PHP的文档中有一个非常不错的说明: mysql_unbuffered_query() 函数: “mysql_unbuffered_query() sends the SQL...This saves a considerable amount of memory with SQL queries that produce large result sets, and you can...start working on the result set immediately after the first row has been retrieved as you don’t have...上面那句话翻译过来是说,mysql_unbuffered_query() 发送一个SQL语句到MySQL而并不像mysql_query()一样去自动fethch和缓存结果。...例如,表中没有如下类型的字段: VARCHAR,TEXT,BLOB。只要你包括了其中一个这些字段,那么这个表就不是“固定长度静态表”了,这样,MySQL 引擎会用另一种方法来处理。 15.

54620
领券