We have a client that has a VM configuration that has a lot of RAM and were wondering if Laserfiche has an option to tell it to load the repository database into memory? I mentioned that I believe SQL had an option to do that, but they have had bad experiences with using the SQL configuration.
Question
Question
Does Laserfiche Have the Option to Load the Repository Database into Memory?
Answer
There is no flag or command that tells SQL Server to load a database into memory, though if you allow SQL Server access to enough RAM it won't need to evict data that has been brought into memory. That's the idea behind this approach: https://stackoverflow.com/a/23816371/
Replies
I'm not sure I understand. The entire point of having a database server is so that data is written to and kept on disk (which is persistent) and doesn't have to be stored in memory (which is not persistent, i.e. you lose it during reboots etc.).
There are in-memory data stores that also provide persistence (such as Redis) but they tend to be designed for rather specialized functions.
SQL Server already has caching mechanisms to keep regularly accessed data in memory so that it is quicker to access. I'm sure LF Server, Forms and WF also do their own caching. But I've never heard of an application loading its entire database into memory or anything of the sort.
I would guess that they were referring to memory-optimized tables? Laserfiche's architecture does not make it suitable for that.