V
V
Vitaly2017-01-23 11:23:34
linux
Vitaly, 2017-01-23 11:23:34

Is it possible to store the database cache in RAM?

The idea is as follows: when the application starts, load the entire database into RAM in the form of objects and asynchronously change its contents during the program, eliminating the need for multiple disk reads. Concerned about the issue of overflowing the RAM - how real is this threat? Is this problem solved by caching the RAM at the operating system level?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2017-01-23
@vitali1995

Any normal base itself is engaged in competent caching in memory, and double-triple caching is not needed. You can simply load objects into memory and access them instead of the database. But if you change them, then you need to save regularly. The base does this on its own, so it makes no sense to make a bike.
It makes sense to tune something if you have such a highly loaded project that standard tools do not solve the problem.

S
Sanes, 2017-01-23
@Sanes

Only for reading.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question