Property configuration #
DBPlusEngine provides property configuration to configure system-level configuration.
Configuration item description #
Name | Data type | Description | Default value |
---|---|---|---|
sql-show (?) | boolean | Whether to print SQL in the log. Printing SQL can help developers quickly locate system problems. Log content includes: logical SQL, real SQL and SQL parsing results. If the configuration is enabled, the log will use Topic ShardingSphere-SQL and the log level is INFO | false |
sql-simple (?) | boolean | Whether to print simple style SQL in the log | false |
kernel-executor-size (?) | int | Used to set the size of the task processing thread pool. Each ShardingSphereDataSource uses an independent thread pool. Different data sources of the same JVM do not share the thread pool. | infinite |
max-connections-size-per-query (?) | int | The maximum number of connections that can be used in each database instance for one query request | 1 |
check-table-metadata-enabled (?) | boolean | Whether to check the structural consistency of shard metadata during program startup and update | false |
sql-federation-enabled (?) | String | Federated query executor type, including: NONE, ORIGINAL, ADVANCED | NONE |
Operation steps #
Property configuration is directly configured in the configuration file used by the Driver, with the following format:
props:
sql-show: true