Skip to content

Commit c580be1

Browse files
committed
rm save_edit calls for Resource and Resources first tile instance since redundant with bulk_save_edits re #10770
1 parent de56b34 commit c580be1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

arches/app/models/resource.py

-10
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,6 @@ def bulk_save(resources, transaction_id=None):
305305

306306
print(f"Time to bulk create tiles and resources: {datetime.timedelta(seconds=time() - start)}")
307307

308-
start = time()
309-
for resource in resources:
310-
resource.save_edit(edit_type="create", transaction_id=transaction_id)
311-
312-
resources[0].tiles[0].save_edit(
313-
note=f"Bulk created: {len(tiles)} for {len(resources)} resources.", edit_type="bulk_create", transaction_id=transaction_id
314-
)
315-
316-
print("Time to save resource edits: %s" % datetime.timedelta(seconds=time() - start))
317-
318308
for resource in resources:
319309
start = time()
320310
document, terms = resource.get_documents_to_index(

0 commit comments

Comments
 (0)