In my case, it was the number of records. I only recorded 30 records per minute and had an IOPS round record with roughly the same 20-30. But it was eating in the CPU, which significantly reduced processor credit. Therefore, I took all the data in this table and transferred it to another "historical" table. And cleared all the data in this table.
The CPU went down to normal, but Write IOPS remained about the same, but that was normal. Problem: indexes, I think, because so many records that needed to be indexed at insertion, it took more CPU for this indexing with so many rows. Although the only index I had was the Primary Key.
The moral of my story, the problem is not always where you think it lies, although I increased Write IOPS, this was not the main cause of the problem, but rather the processor that was used to create the indexing during insertion caused a CPU drop.
Even X-RAY on Lambda could not catch the increased request time. That is, when I started looking directly at the database.
source share