Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1119|回复: 0
打印 上一主题 下一主题

How to check if sqlite3 is compiled with HAVE_USLEEP

[复制链接]

1228

主题

1997

帖子

7582

积分

认证用户组

Rank: 5Rank: 5

积分
7582
跳转到指定楼层
楼主
发表于 2021-7-8 16:14:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
https://stackoverflow.com/questi ... ed-with-have-usleep

  // if SQlite was STILL not built with HAVE_USLEEP, do not ship this build! We need usleep
  // support so that multiple processes can connect to the sqlite file at the same time.
  // Without it, transactions only retry every 1 sec instead of every 10ms, leading to
  // awful db lock contention.


即sqlite支持微秒(千分之一毫秒)这样多进程就可以快速的连接sqlite(1秒内多次),否则事务只能能每秒尝试一次,而不是10毫秒
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-5-2 07:34 , Processed in 0.053077 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表