AEM Update Asset Metadata endpoint is so slow

Avatar

Avatar

yko1

Avatar

yko1

yko1

11-11-2020

This is a question about AEM Update Asset Metadata endpoint. 

We do have about 1,665,384 assets in AEM. We have been trying to update 4 or 5 metadata values using the update asset metadata endpoint. The endpoint is so slow. Does anyone know why the endpoint is so slow? or What the endpoint does?

 

Updating 4 or 5 metadata values for about 700,000 assets. 

Number of Threads: 100 threads 

PUT Request: http://aemdam.example.com/api/assets/migrated/F27/Pharaoh_A.tif

Request Body: {"class":"asset","properties":{"metadata/lds:originalAssetID":"T1-1178613"}}

Each Update Call Time Taken: about 3 or 4 minutes. The endpoint gets slower when updating more assets. 

Assets Updated: 1000 assets per hour

 

When one thread is used, each Update endpoint call takes about 1 or 2 seconds. When 25 threads are used, each call takes about 30 seconds. When 100 threads are used, each call takes about 100 seconds and the more assets gets processed, it gets slower and slower. Looks like the endpoint is processing the request sequentially. 

 

 

 

Accepted Solutions (0)

Answers (0)