[Feature Contribution]: Multiple data source support
See original GitHub issueWhat happened?
I proposed this feature in https://github.com/Green-Software-Foundation/carbon-aware-sdk/issues/343#issuecomment-1531014957 .
Carbon Aware SDK supports just one data source as following:
{
"DataSources": {
"EmissionsDataSource": "ElectricityMaps",
"ForecastDataSource": "WattTime",
Granularity and covered area vary in each data souces. Some SDK users want to use WattTime as a first priority, but they might want to use ElectricityMaps when they want to know emission data of uncovered area in WattTime.
So I’d like to propose mutiple data source support as following:
{
"DataSources": {
"EmissionsDataSources": ["WattTime", "ElectricityMaps"],
"ForecastDataSources": ["JSON", "WattTime", "ElectricityMaps"],
In above case, both EmissionsDataSouce
and ForecastDataSouces
are array. Lower index is higher priority. For example in EmissionData
, WattTime
is the highest priority, but no emission data for given location in WattTime, it would fallback to ElectricityMaps
.
Code of Conduct
- I agree to follow this project’s Code of Conduct
Feature Commitment
- I commit to contributing this feature as a PR and working with the GSF to merge this feature into the Carbon Aware SDK.
Issue Analytics
- State:
- Created 5 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Offline stores should support multiple data sources #2121
Offline stores currently only support their corresponding data source. For example: class BigQueryOfflineStore(OfflineStore): def ...
Read more >Launch Highlight: Multiple Data Sources
The Multiple Data Sources feature introduces a new saved object, data-source , that provides information about a data source connection, such as ...
Read more >How to Use Multiple Data Sources in a DSV
In this article, you will learn about the benefits and challenges of using multiple data sources in a DSV, and how to create...
Read more >Multiple data sources, databases, schemas and replication ...
To use multiple data sources connected to different databases, simply create multiple ... This feature is supported only in mysql and mssql databases....
Read more >Data sources | ArcGIS Experience Builder
The actual data of a FeatureLayerDataSource can be from a remote database, or from a collection of client side features. Both types support...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@YaSuenag This seems worthy of an ADR.
Update from meeting #355: not crticial for 1.1, rather a feature for 1.2. Open to discussion