File Types

jGnash supports different file types for storing data. File types can be easily changed by using the FileSave As command and naming the new file with the appropriate file extension.

The current file will be saved in the new format and automatically opened.

Regardless of file type used, jGnash automatically saves the data if changed every 30 seconds to minimize the chance of accidental data loss.

[Note]Client/Server

If you are using jGnash in the Client/Server mode, all changes are committed immediately.

H2 and HyperSql Relational Database

An H2 or HyperSql relational database is required when using the client / server functionality of jGnash. jGnash already embeds the database server so that no additional configuration or installation of software is required to use a relational database.

The relational database may be used for a single user. If startup and shutdown performance is important to you, then the binary file format described below is a better choice.

The advantage of the relational database outside the requirement for client / server capability is the ability to use several available tools to browse and query your jGnash data. Also, a relational database will be more fault tolerant of system crashes or power outages vs. use of an XML or Binary file.

The disadvantage of the relational database is a bit slower operation and more memory consumption.

If using the H2 Database and operating over a network using Client/Server mode, you have the option of enabling encryption for network communication. This will not encrypt your database file. See the Command line options for specifics.

[Note]Database Administrator

The default administrator for a jGnash relational databases is JGNASH and is not configurable at this time.

XML File

XML file format is human readable and easily read by other applications at the expense of a considerably larger file size. Memory usage is less when using the XML file format, but certain operations may take longer. The advantage of the XML file is easier parsing and manipulation of the file using another program external to jGnash. If you have a large amount of data, jGnash will use less system memory when using the XML file format.

[Note]Backups

The XML format is also used for saving automatic backups of jGnash files if enabled.

Binary File

The binary file format is the most compact file format and will open and close the quickest. This is the recommended file format if you do not need client / server functionality.