Configuring Local PM Queries
Local PM query mode
MariaDB ColumnStore has the ability to query data from just a single PM instead of the whole database thru the UM. In order to accomplish this, the infinidb_local_query variable in the my.cnf configuration file is used and maybe set as a default at system wide or set at the session level.
Enable Local PM query systemwide
To enable/disable the use of the local PM Query at the instance level, specify infinidb_local_query in the my.cnf configuration file. The default is 0 (disabled). In my.cnf file (/usr/local/Calpont/mysql): [mysqld] xxxxx infinidb_local_query=value where value is 0 (disabled) or 1 (enabled).
Enable/disable local PM query at the session level
To enable/disable the use of the local PM Query at the session level, the following command is used. Once the session has ended, any subsequent session will return to the default for the instance.
set infinidb_local_query = n where n is: * 0 (disabled) * 1 (enabled)
At the session level, this variable applies only to executing a query on an individual PM and will error if executed on the UM. The PM must be set up with the local query option during installation.