![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am new to Berkeley DB so please forgive my relative Ignorance. The application I am developing should work as follows: 1. On startup - load as much as possible from a database file into RAM for fast access. 2. During normal operation the data is hold in RAM (only if data size exceeds available RAM, disk IO is performed). 3. On shutdown (or any other desired point in time) - flush the memory content back to the disk file. I realize that the relevant manual sections are probably "The Memory Pool Subsystem" and "The Berkeley DB Environment". However I don't understand how to code a solution. The memory pool solution seems to be overly complex to me (as I understand it I'd have to manually retrieve pages (What are pages?) from a memory file (I only have a database file)). Could someone in this group please outline a general approach for the design of an application like the one I imagined above? Kind regards, Alea Miras |
#3
| |||
| |||
|
|
1. On startup - load as much as possible from a database file into RAM for fast access. 2. During normal operation the data is hold in RAM (only if data size exceeds available RAM, disk IO is performed). 3. On shutdown (or any other desired point in time) - flush the memory content back to the disk file. |
![]() |
| Thread Tools | |
| Display Modes | |
| |