Dgraph high memory usage with frequent attribute updates

I am running Dgraph on a EC2 instance with 2 vCPU and 2GB RAM.
This is a dev environment. So number of nodes is quite low (less than hundred)

Everything is fine, except an operation:

Updating an attribute of a node rapidly (once a second) for a few minutes.

This is resulting memory usage jumping from 20% to more than 70-80%, and sometimes even crashing.

I want to know if any way this can be optimised, or Dgraph is just not suitable for this kind of operations.

Hi @arpanbag001,

Can you share the code you are using to update the graph?