public final class CachingSqlProcessor extends Object
SqlUtils
with a cache. The rationale for this is as follows:
the regex-based processing of the identifiers done in SqlUtils
is very often more expensive than the call to the database.
In fact, for simple queries, this is always true. At the same time, the queries are often very similar. Let's cache the results.Modifier and Type | Method and Description |
---|---|
String |
processOnClause(String on,
Function<String,String> processor) |
String |
processWhereClause(String where,
Function<String,String> processor) |
Copyright © 2007–2023 Atlassian. All rights reserved.