节点MongoDB驱动程序中删除了域可启用客户端选项4.0

发布于 2025-02-10 05:42:39 字数 554 浏览 2 评论 0原文

节点mongodb本地驱动程序版本3.7提供domainsEnabled连接选项(如 3.7文档

启用回调在当前域中的包装,默认情况下禁用以避免perf命中

但是,我在 4.0版本

为什么将其删除?有能力与4.0具有相同的功能吗?

谢谢!

Node mongodb native driver version 3.7 provides a domainsEnabled connection option (as described in 3.7 documentation)

Enable the wrapping of the callback in the current domain, disabled by default to avoid perf hit

However, I don't find a similar option in 4.0 release

Why has it been removed? Is there any workaround to have the same functionality with 4.0?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文