Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Update Asset Metadata endpoint is so slow

Avatar

Avatar
Level 1
yko1
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
yko1
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
yko1
Level 1

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 (1)

Answers (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,429 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,429 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

17-02-2021

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.