Genus Docs
Search Results for

    Show / Hide Table of Contents

    Special Considerations for Oracle

    Reading large objects, for example BLOB or CLOB, from the database can be memory intensive operations, and sometimes performance can be improved by reading the data in chunks. Reading large objects in chunks, on the other hand, can lead to an increase in connections to the database, especially if there are many concurrent users. The optimal behaviour is therefore different from solution to solution, and this behaviour can therefore be modified by defining certain properties in the app.config or web.config files.

    Genus attempts to determine the best way to read large objects in each case; and large objects are then read, either in one operation, or in chunks. If the object is read in chunks, Genus looks for relevant settings in the configuration files and uses these, or applies the default values if no such settings are defined.

    The settings also applies to write operations.

    Property Values Description Default (if not defined in config file)
    OracleOverrideFetchSize True / False False: Let Genus decide when to read large objects in one operation, and when to use the settings defined in the configuration file. True: Always use the settings in the configuration file. False
    OracleInitialLOBFetchSize Integer Number The number of bytes or characters to read of LOB data types during first read operation. 0: Do not read LOB data types during first read. This means that all other data types are read first, and LOB data types are read in subsequent read operations. -1: Read LOB data types in full during first read operation. This means that the LOB data types are read toghether with all the other data types. For more information, see InitialLOBFetchSize and Obtaining LOB Datain the Oracle documentation. -1
    OracleInitialLONGFetchSize Integer Number The number of bytes or characters to read of LONG data types during first read operation. 0: Do not read LONG data types during first read. This means that all other data types are read first, and LONG data types are read in subsequent read operations. -1: Read LONG data types in full during first read operation. This means that the LONG data types are read toghether with all the other data types. For more information, see InitialLONGFetchSize and Obtaining LONG and LONG RAW Data in the Oracle documentation. -1
    OracleFetchBufferSize Integer Number The number of bytes or characters to be read at a time of LOB and LONG datatypes, after the first read operation. This setting is not used for LOB data types if the OracleInitialLOBFetchSize is -1, or for LONG data types if the OracleInitialLONGFetchSize is -1. 131072 (128KB)

    The settings are defined as key/value pairs in the appSettings section of the app.config file or the web.config file.

    For example:


    ...



    ...
    • Improve this Doc
    In This Article
    Back to top © Copyright Genus AS, Norway. All rights reserved.