暂无图片
Mongodb 如何实现 sleep功能?
我来答
wzf0072
2023-01-13
Mongodb 如何实现 sleep功能?

Mongodb 如何实现 sleep功能?

SQL Server:      waitfor delay '00:00:10'

Mongodb :???

我来答
添加附件
收藏
问题补充
4条回答
默认
最新
Z
zwx

sleep

Forces the database to block all operations. This is an internal command for testing purposes.

The sleep command takes the following prototype form:

{ sleep: 1, w: <true|false>, secs: <seconds> }

The sleep command has the following fields:

FieldTypeDescription
wbooleanIf true, obtains a global write lock. Otherwise obtains a read lock.
secsintegerThe number of seconds to sleep.
暂无图片 评论
暂无图片 有用 5
暂无图片
zwx
答主
2023-01-13
D
dyf1
{ sleep: 1, w: <true|false>, secs: <seconds> }
暂无图片 评论
暂无图片 有用 6
dyf1
答主
2023-01-13
H
hgb524
{ sleep: 1, w: <true|false>, secs: <seconds> }
暂无图片 评论
暂无图片 有用 2
手
手机用户5704
{ sleep: 1, w: <true|false>, secs: <seconds> }
暂无图片 评论
暂无图片 有用 1
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏