This section explains how to configure the ShardingSphere-Proxy rules.
Rules configuration for ShardingSphere-Proxy is the same as ShardingSphere-JDBC. For details, please refer to ShardingSphere-JDBC Rules Configuration.
Unlike ShardingSphere-JDBC, the following rules need to be configured in ShardingSphere-Proxy’s global.yaml:
sqlParser:
  sqlStatementCache:
    initialCapacity: 2000
    maximumSize: 65535
  parseTreeCache:
    initialCapacity: 128
    maximumSize: 1024
transaction:
  defaultType: XA
  providerType: Atomikos
sqlTranslator:
  type:
  useOriginalSQLWhenTranslatingFailed:
sqlFederation:
  sqlFederationEnabled: true
  allQueryUseSQLFederation: false
  executionPlanCache:
    initialCapacity: 2000
    maximumSize: 65535
