opai :: ShareRootBase - Activate shared root base feature
The function can be called in order to share root bases between threads and database handles. When the feature is enabled, database files are opened only once, independent on the number of database handles opened for a database file.
When shared rootbase is enabled and the database is opened exclusively, shared rootbase does not call file locks in order to prevent database resources from parallel usage. Shared rootbase is typically used for server applications. When enabling shared rootbase, database resources are locked internally. When a database is opened with shared access ( NET = YES ), file locks are submitted in addition in order to prevent different processed from improperly updates of database resources.
Enabling shared rootbase may also increase performance, since database resources can be cached.