This sample opens a hybrid database using 1 or 4 memory devices depending on the runtime settings determined from the database schema and whether the sample is linked with disk-based or in-memory libraries; then it displays runtime information and closes the database. The application demonstrates how to use the runtime flags
mco_disk_supported
to check for the presence of the disk-based runtime library andmco_shm_supported
for the shared memory runtime library.
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bin
directory:02_open_hybridBut it is more instructive to run it in your development environment debugger, stepping through the code.