Share via

Query data when recreating Cosmos Sql collections in data factory data flow

Wentao Ding 26 Reputation points Microsoft Employee
2021-08-12T01:35:26.323+00:00

We need to wipe out the old data and get fresh data from the data source every day. In the data flow, for cosmos sql sink, there is an option to Recreate the collection. But while it is writing the rows, it is possible that query a certain row that has not been written to the cosmos sql, since it takes about 25 mins to complete the pipeline.

So I was wondering is there a better way to handle this scenario? like populate the data to a staging table and swap?

122543-image.png

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

1 answer

Sort by: Most helpful
  1. HimanshuSinha 19,637 Reputation points Microsoft Employee Moderator
    2021-08-13T22:32:24.367+00:00

    Hello @Wentao Ding ,
    Thanks for the ask and using the Microsoft Q&A platform .

    it is possible that query a certain row that has not been written to the table

    I am assuminmg that the table referenced here is on the source side and if thats the case then yes you are write a query and MDF will execute the query to pull the data .

    123241-image.png

    Please do let me know how it goes .
    Thanks
    Himanshu
    Please do consider clicking on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.