SQL Parser #
Configuration Entry #
Class name: org.apache.shardingsphere.parser.config.SQLParserRuleConfiguration
configurable properties:
Name | Data type | Description |
---|---|---|
sqlCommentParseEnabled (?) | boolean | Whether to use string interception to parse SQL comments |
parseTreeCache (?) | CacheOption | Parse tree local cache configuration |
sqlStatementCache (?) | CacheOption | sql statement local cache configuration |
Local Cache Configuration #
Class name: org.apache.shardingsphere.sql.parser.api.CacheOption
configurable properties:
Name | Data type | Description | Default value |
---|---|---|---|
initialCapacity | int | Initial capacity of local cache | The default value of parse tree local cache is 128, and the default value of SQL statement cache is 2000 |
maximumSize | long | Maximum capacity of local cache | The default value of parse tree local cache is 1024, and the default value of SQL statement cache is 65535 |
concurrencyLevel | int | Local cache concurrency level, the maximum number of concurrent updates allowed by threads | 4 |