SQL parameters: sqladhoccachesize

Startup parameters change the behavior of the Service Manager server. You can always set a startup parameter from the server's operating system command prompt.

Parameter

sqladhoccachesize:<n>

Description

This parameter limits the memory consumption of the ad hoc SQL cache. It allows you to specify how much memory Service Manager should use for the cache for ad hoc SQL queries, when the query involves joining multiple files. This can help response time on ad hoc SQL queries but would increase the memory foot print of a single user session.

Valid if set from

Server's operating system command prompt

Initialization file (sm.ini)

Requires restart of the Service Manager server?

No

Default value

0

Possible values

  • 0 — disable the ad hoc sql cache
  • 99999999 — grant the ad hoc SQL cache as much memory as it wants
  • Any other value specifies the maximum size of the ad hoc SQL cache in bytes.

Example usage

Command line: sm -httpPort:13080 -sqladhoccachesize:500000

Initialization file: sqladhoccachesize:500000

Related topics

Database parameters