Expand my Community achievements bar.

SOLVED

AEM Update Asset Metadata endpoint is so slow

Avatar

Level 1

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. 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You may need to stop launchers, as Launcher gets triggered when you update the assets. Please check if anything else is running due to metadata update.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

You may need to stop launchers, as Launcher gets triggered when you update the assets. Please check if anything else is running due to metadata update.



Arun Patidar