proullon/ramsql

what happens if oom?

hiqsociety opened this issue · 1 comments

what happens if oom? is that possible?

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

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 ?