Previous Topic

Next Topic

Fastload Operation

The fastload operation loads data from a binary format file into a single table in a single database. It loads each contiguous n bytes of data into a new row in the target table.

The fastload operation can be performed using the fastload command (see the Command Reference Guide) or in VDBA using the Fastload Table dialog. In VDBA, you select the desired table from a database and choose a file from which you want to load the data in the Fastload Table dialog.

Previous Topic

Next Topic

Requirements for Using Fastload

The following requirements must be met to perform a fastload:

Previous Topic

Next Topic

Perform a Fastload Operation

To perform a fastload operation (load binary format files into a table), perform the following steps:

  1. Make a backup of the table's content.

    You need a backup because it can be difficult to fix or eradicate loaded data that is incorrect.

    Always check manually that the data has been loaded correctly.

  2. Generate a copy of the file you want to fastload by copying it from an Ingres table that has the same format as the target table, or by creating it programmatically.

    Do the copy in binary format, for example:

    copy test() into 'test.out'

  3. Enter the fastload command, for example:

    fastload fload -file=test.out -table=test

    The table "test" in the database "fload" is loaded from the file "test.out".

  4. Observe that a summary of the load displays the row size, number of rows loaded, and the number of bytes read.
  5. Verify manually that the data has been loaded correctly.

Previous Topic

Next Topic

Loading Data in a Multi-CPU Environment

It can be faster to use copy instead of fastload if the load is being done in a multi-CPU environment. Copy is faster because it uses two processes and can use two CPUs, whereas fastload uses only one CPU. Use copy if a large amount of sorting is required to load the data. If there is more than one CPU available on the system, fastload can become CPU—bound on a single CPU.


© 2007 Ingres Corporation. All rights reserved.