DocumentDB persistence throughput

0

I'm using DocumentDB with Spring services through Spring Data MongoDB and am having issues with high data throughput.

The service needs to load, update, and persist approximately 15,000 documents from a collection, each document around 5kb in size. Using a combination of Spring repositories and Mongo templates I've got the load time to around 20s and the persistence to around 40s, I'm trying to find out how or if it's possible to lower these values significantly.

The collection has 3 indexes on it, the DocDB cluster has a primary and replica instance of r6g.2xlarge size. I have Performance Insights enabled and it shows a split of 50% I/O and 30% CPU during the process.

Is the performance I'm seeing expected or is there a way to lower the time taken to load and save the data?

已提問 5 個月前檢視次數 49 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南