What s the best way to sync production data with a Sql server?
do we run the put and delete for all of those or is there a better way
What s the best way to sync production data with a Sql server?
do we run the put and delete for all of those or is there a better way
Best way to sync production data with SQL Server + ComboCurve API.
Use batch PUT/PATCH for updates/inserts, and DELETE by well + date range for removals—avoid row-by-row calls.
Recommended flow:
Detect changes in SQL Server
Use last-updated timestamps or change tracking to ID new, modified, or deleted records.
Push new/updated records
Handle deletes
Use DELETE by well ID + date range
Group deletions to minimize calls
Is there a way I can check the updated date or inserted date of Production data (either Daily or Weekly)? My thinking here is if I am able to pull the well ids whose production have not been updated in the first run where i run the put (upsert) then delete it.
Armaan,
If you read the API documentation (https://api.combocurve.com/v1/daily-productions), you will see filters for createdAt and updatedAt. You can use these filters to pull and compare the production data you are referring to.