ramsql icon indicating copy to clipboard operation
ramsql copied to clipboard

what happens if oom?

Open hiqsociety opened this issue 3 years ago • 1 comments

what happens if oom? is that possible?

how do u specify memory size so that it doesnt oom?

hiqsociety avatar Jul 15 '22 00:07 hiqsociety

it is definitly possible to oom :D

With this issue and the next one, I'm guessing you want to use ramsql as a local cache ?

I guess it could be interresting if:

  • table ram usage estimation is implemented
  • a flag is added in the DSN to specify max ram usage
  • index are implemented and used
  • a flag is added to specify behavior when RAM limit is reached, either write error or LFRU system yes

That would be nice actually. The first thing would be to setup a benchmark. Can you describe a bit the topology of your data so we have a good test case ?

proullon avatar Jul 15 '22 17:07 proullon