firemail

标题: How to check if sqlite3 is compiled with HAVE_USLEEP [打印本页]

作者: Qter    时间: 2021-7-8 16:14
标题: How to check if sqlite3 is compiled with HAVE_USLEEP
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毫秒





欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3