|
|
|
|
- Equivalence
- Retrieving the records
- Managing the CacheSize property
- hQueryWithoutCorrection constant
CacheSize (Property) In french: TailleCache
 Available only with these kinds of connection
The CacheSize property is used to: - Get the maximum number of records that can be stored in the cache of the Native MySQL Connector.
- Change the maximum number of records that can be stored in the cache of the Native MySQL Connector. In this case, if the connection is currently opened, it will be closed and reopened with the new parameters during the first access to a file that uses this connection.
Remark: The connection can correspond to: Syntax
Getting the cache size for a connection Hide the details
<Cache size> = <Connection used>.CacheSize
<Cache size>: Integer Cache size of the Native MySQL Connector.If this parameter corresponds to: - -2: the cache size is the default size (100 for the Native MySQL Connector).
- -1: the cache size is unlimited.
- 0: the cache stores no record. No record is retrieved.
<Connection used>: Character string or Connection variable Name of the connection used. This name was defined:
Defining the cache size for a connection Hide the details
<Connection used>.CacheSize = <Cache size>
<Connection used>: Character string or Connection variable Name of the connection used. This name was defined: <Cache size>: Integer New cache size of the Native MySQL Connector.If this parameter corresponds to: - -2: the cache size will be the default size (100 for the Native MySQL Connector).
- -1: the cache size will be unlimited.
- 0: the cache will store no record. No record will be retrieved.
Remarks Equivalence CtCacheSize is used to define the cache size for a MySQL connection. This property is kept for backward compatibility. It is recommended to use the CacheSize property. Retrieving the records The speed at which the entire set of records is retrieved is proportional to the cache size: the larger the cache size, the faster the records are retrieved. However, the smaller the cache size, the faster the first record will be read. Caution: The memory used by the cache is proportional to the cache size. hQueryWithoutCorrection constant If the query is run while no check is performed on the SQL code (hQueryWithoutCorrection constant): the size is unlimited and cannot be changed with the CacheSize property.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|