Skip to content

ODC EP 002 Support for multiple DC databases

Rob Woodcock edited this page Jul 18, 2019 · 7 revisions

Overview

Brief paragraph on what the proposal is.

Proposed By

  • Robert Woodcock (CSIRO)

State

  • Under Discussion
  • In Progress
  • Completed
  • Rejected
  • Deferred

Motivation

With multiple ODC deployments now underway there are often good collaborative and data sharing reasons to have access to multiple ODC instances. In addition, there is often private data and shared data, and the need to save your own results as a data cube. This leads to general requirement for multiple database support in the ODC code.

Proposal

The idea will be to add support for multiple databases to be specified and used by the ODC API, in the database.conf file, dc.load() and the prototype dc.save(). By default the ODC code would behave in exactly the same way, simply iterating over all specified databases to search for the appropriate product and then directing calls to that database in order to retrieve data. Initially this would support a 1 to 1 mapping of product to database - that is, no duplication of product name and thus no merging of the products from across the databases.

Q: isn't this already possible with multiple Datacube instances?

WIP: More details are required, I just made a start...

Feedback

18/7/2019 - @woodcockr Been working with a few users in a multi-database environment. Can confirm there is definitely a need for this but you can work around it using datacube environments. A few things to note:

  1. Product names tend to be unique and it is the default expectation that they should be. This could support the simple implementation discussed previously (per ODC SC: No clashes in product names, no duplicates -> simple union of products into same cube)
  2. It is a little confusing and error prone to use datacube environments. Not overly so but suggests a small amount of effort to reduce the burden would be beneficial

Next step would be to take a look at what code changes might be required and see if it is worth the effort (noting 2).

Voting

Enhancement Proposal Team

  • One Individual

Links

Clone this wiki locally