The current storage strategy (delete all and then store the new) is likely not efficient enough for large production deployments. The same is true for the indices on the catalog_inputs table.