简体   繁体   中英

Azure Cosmos DB read change feed from date range

Is it possible to query all historical change feed data from a specific datetime range?

So far I've found ReadDocumentFeedAsync which accepts a FeedOptions object, but that object only allows for querying based on partition key ranges.

My main objective is knowing how to handle failures of my synchronization process. Ideally I'd be able to set a date/time range to read from the change feed to synchronize any changes that occurred within that time.

Edit: Reading from http://news.dataloco.com/working-with-the-change-feed-support-in-azure-documentdb-microsoft-docs , it appears you can set an "etag" to start from... though I can't find support for it through C# classes and I have no idea if those API's still match that article.

I am afraid, there is no way to setup a range. There is only StartTime property on the FeedOption.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM