You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
方法1: public void addCondition(final SQLExpr expr, final BinaryOperator operator, final List valueExprList, final DatabaseType databaseType, final List parameters)
方法2:
public void addCondition(final String columnName, final String tableName, final BinaryOperator operator, final SQLExpr valueExpr, final DatabaseType databaseType, final List parameters)
添加条件的逻辑:
在insert场合,应该先判断shardingColumns.contains(columnName) 如果不是shardingcolumn,不用去做evalExpression(databaseType, valueExpr, parameters)操作。
方法1: public void addCondition(final SQLExpr expr, final BinaryOperator operator, final List valueExprList, final DatabaseType databaseType, final List parameters)
方法2:
public void addCondition(final String columnName, final String tableName, final BinaryOperator operator, final SQLExpr valueExpr, final DatabaseType databaseType, final List parameters)
添加条件的逻辑:
在insert场合,应该先判断shardingColumns.contains(columnName) 如果不是shardingcolumn,不用去做evalExpression(databaseType, valueExpr, parameters)操作。
现在逻辑:先做evalExpression(databaseType, valueExpr, parameters)操作,然后在判断shardingColumns.contains(columnName)。
这样性能上会有影响。
建议修改一下代码。
The text was updated successfully, but these errors were encountered: