datacube.index._products.ProductResource.update

ProductResource.update(product, allow_unsafe_updates=False, allow_table_lock=False)[source]

Update a product. Unsafe changes will throw a ValueError by default.

(An unsafe change is anything that may potentially make the product incompatible with existing datasets of that type)

Parameters:
  • product (DatasetType) – Product to update
  • allow_unsafe_updates (bool) – Allow unsafe changes. Use with caution.
  • allow_table_lock

    Allow an exclusive lock to be taken on the table while creating the indexes. This will halt other user’s requests until completed.

    If false, creation will be slower and cannot be done in a transaction.

Return type:

DatasetType