Skip to main content
In-memory records function like on-disk records, but they exist in the temporary memory of your device (RAM). Use in-memory standards by prepending the table declaration with a $. This is useful for high-speed operations where you need fast reads and writes without immediately committing changes to disk.
In-memory records are lost when the Standard System restarts unless you sync them to disk first. Always call sync before shutting down if you want to preserve your changes.

In-Memory Tables

To initialize in-memory tables, you do not need records or an initialized table for that Standard. Given this Standard definition:
You can create in-memory records directly:

Loading On-Disk Records into Memory

Replicate on-disk records into RAM with the load command. This will overwrite any existing in-memory records for that Standard:

Modifying In-Memory Records

All changes are made only to data in memory and do not affect on-disk records until you explicitly sync:

Syncing Changes to Disk

Once you are satisfied with your in-memory changes, sync them back to on-disk records with sync: