Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We are doing the stressing test, and we found SqlNode#toString's time is unusually high, seems the call is all from SqlNode#toString, we can reduce the useless call of "ImmutableBeans.create" to reduce the time:
My proposal is to extra default SqlWriterConfig to SqlNode and SqlNode#toString use this static field.
public static final SqlWriterConfig DEFAULT_SQL_WRITER_CONFIG = SqlPrettyWriter.config().withDialect(AnsiSqlDialect.DEFAULT) .withAlwaysUseParentheses(false) .withSelectListItemsOnSeparateLines(false) .withUpdateSetListNewline(false) .withIndentation(0);
Attachments
Attachments
Issue Links
- links to