Forum Discussion
API connection, time series analysis issue
- 2 years ago
Choose a balance between reducing the strain on the source system (pull only the data that you need) and your maintenance effort (DB management) . Instead of a db you can also consider CSV or Parquet files for your storage.
Does the data behind the API change after the fact? For example if you pull yesterday's data, will that then be it or do you have to repull it after some time to catch the changes?
Good question.
In perfect world the data shouldn't change. But some changes due to errors are possible (manual changes by admin to the original data due to human error or similar).. So it's possible that it will be needed to repull the data, let's say once a week or once a month?
Any ideas how to address the possible issue?
- lbendlin2 years agoSuper User
I would recommend you consider setting up incremental refresh. Then you can decide if you want to schedule the refresh automatically, or if you want to manually update certain partitions.
The API query may not fold, so the performance improvements will be minimal. But the refresh flexibility may be worth it.
- rademar2 years agoFrequent Visitor
So you don't recommend makind some database in between powerbi and api? Will it be possible tu pull years of data with incremental refresh? Where is all the data stored that way?
A side question: If we plan to make a future proof solution, with possibility that data from other APIs is loaded in the future to the model, would you then recomend making a database? So to make a database structure, map the corresponding fields in api and fill the database, possibly from 2 or more different sources and make reports as it's one dataset. Hope I made this part clear..
- lbendlin2 years agoSuper User
Kudos for talking this through. "Storage Guarantee" is one of the weak points of Power BI. Basically there is none. This may be changing with Fabric, but it's still a good idea to have a plan B. I call it "Source Data Recoverability". Yes, it's a made up word, but it conveys the idea. If your APIs are guaranteed to be able to produce the same data reliably over many years then you don't need a database in between. But if they don't, or if you want to do CDC, then a db certainly makes sense. It creates additional cost, of course.