Project: glitch/tihon
My project keeps refreshing after a while due to no memory left. Using os
module i’ve logged memory stats.
My idea why it consumes a lot of memory is that I’m using data-store
package because, after I added it, the problem appeared. I store users’ data that updates on every message and adds 1 coin to user. The structure of this:
Set {
412844794: { amount: 34 },
...
}
But there isn’t a lot of data! Why it is goes like that, I can’t understand.