datacube.index.abstract.AbstractProductResource.add#

abstract AbstractProductResource.add(product, allow_table_lock=False)[source]#

Add a product to the index.

Parameters
  • metadata_type – Unpersisted Product model

  • allow_table_lock (bool) –

    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 slightly slower and cannot be done in a transaction.

    raise NotImplementedError if set to True, and this behaviour is not applicable for the implementing driver.

Return type

Product

Returns

Persisted Product model.