79082756

Date: 2024-10-13 08:46:55
Score: 1.5
Natty:
Report link

Thanks for your comments and answers. I analyzed how the code behaves in previous version vs. V3

I noticed that upserting 100 documents in BulkExecutor took over 2 seconds and consumed over 2 000 RU.

enter image description here

In V3 it took 7 seconds, consumed almost 2 000 RU, while some of the documents failed.

enter image description here

So I decided to upscale before my code to a significantly larger throughput and downscale after the operation finishes. This gave me the desired results.

enter image description here

I did some reading up and there are more ways to handle it, such as:

But due to my setup, I decided to stick with manually increasing the throughput for the time of my operation.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user3573101