DocumentDb中延续标记的寿命是多少 [英] What is the lifespan of continuation tokens in DocumentDb

查看:82
本文介绍了DocumentDb中延续标记的寿命是多少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文档中找不到任何地方可以指示请求继续令牌对DocumentDb分页支持的持续时间.因此,我怀疑它是故意未定义的.

I can't find anywhere in the documentation that indicates how long request continuation tokens last for DocumentDb paging support. I therefore suspect it is intentionally undefined.

在现实世界中,令牌可以持续多长时间?我这样做是为了让我的应用可以在用户浏览重新启动的结果时向用户显示错误,因为延续令牌无效.

In the real world, how long can I expect a token to last for? I ask this so that my app can present an error to the user when they are browsing through results that they have been started again, because the continuation token isn't valid.

推荐答案

DocumentDB中的延续令牌永不过期.它们对恢复查询执行所需的所有状态进行编码.

Continuation tokens in DocumentDB never expire. They encode all the state required to resume query execution.

这篇关于DocumentDb中延续标记的寿命是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆