Described is a method and system for storing data into a database, where a
determination is made if schema metadata that is used to load the data
into the database already exists, and where the existing schema metadata
is used to load the data into the database if the schema metadata already
exists. If the appropriate schema metadata does not exist, then it is
generated and cached so that a later load operation for the same schema
type will not need to re-generate this information. In this way, the cost
to generate the schema metadata is amortized over multiple load
operations to load data of the same schema type. The approach is protocol
neutral so that multiple different protocol-based loads can operate with
the same schema metadata information and load structures.