Some applications need to keep track of many small pieces of data. For example, a database might use thousands of items of data, each of them only a paragraph long; in a spreadsheet, the data size might be only a few bytes. GEOS provides a Database (DB) library to make it easy to keep track of such data and store them conveniently in a GEOS Virtual Memory file.
The DB library manages Local Memory heaps in a VM file and uses these heaps to store items. It lets the geode associate items into groups; these groups can grow indefinitely, unlike LMem heaps.
1 Design Philosophy
2 Database Structure
2.1 DB Items
2.2 DB Groups
2.3 Allocating Groups and Items
2.4 Ungrouped DB Items
2.5 The DB Map Item
3 Using Database Routines
3.1 General Rules to Follow
3.2 Allocating and Freeing Groups
3.3 Allocating and Freeing Items
3.4 Accessing DB Items
3.5 Resizing DB Items
3.6 Setting and Using the Map Item
3.7 Routines for Ungrouped Items
3.8 Other DB Utilities