您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MYSQLI 手册翻译的疑惑

2024/4/3 0:08:49发布29次查看
这是在mysqli_stmt_fetch中的一段英文。
data are transferred unbuffered without calling mysqli_stmt_store_result() which can decrease performance (but reduces memory cost).
这句话是指使用store_result会降低性能但减少内存消耗,还是指不用store_result的话会降低性能、减少内存消耗
谢谢!
回复内容: 这是在mysqli_stmt_fetch中的一段英文。
data are transferred unbuffered without calling mysqli_stmt_store_result() which can decrease performance (but reduces memory cost).
这句话是指使用store_result会降低性能但减少内存消耗,还是指不用store_result的话会降低性能、减少内存消耗
谢谢!
意思应该是不使用mysqli_stmt::store_result的话,会降低性能,但能节省内存.
因为mysqli_stmt::store_result会把所有结果一次性全部传回到php程序中,性能肯定更高,但内存占用也会比fetch逐条从mysql取记录到php程序多.
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product