-
Notifications
You must be signed in to change notification settings - Fork 310
CQL retrieval in QueryExtractorDelegate
is CPU-intensive
#1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting the issue. We should use simple concatenation to avoid excessive formatting overhead on unknown statement types. Care to provide what type of |
ReactiveCqlTemplate
is CPU-intensive
ReactiveCqlTemplate
is CPU-intensiveQueryExtractorDelegate
is CPU-intensive
Consistently use toCql(…) and String.format for CQL retrieval. See #1186
…format(…). We now use string concatenation during query extraction to avoid String.format(…) overhead for unknown queries. Closes #1186
Consistently use toCql(…) and String.format for CQL retrieval. See #1186
Lines 302 to 307 in 889a3d6
The action parameter is a lambda expression, so ... |
It would make sense to replace the |
We now use nested classes implementing CqlProvider to retrieve the fetch size in session callbacks. This enables CQL retrieval. Previously, CQL retrieval saw a class that didn't implement CqlProvider and reported therefore unknown CQL. See #1186
We now use nested classes implementing CqlProvider to retrieve the fetch size in session callbacks. This enables CQL retrieval. Previously, CQL retrieval saw a class that didn't implement CqlProvider and reported therefore unknown CQL. See #1186
ok,thanks!! |
We now use nested classes implementing CqlProvider to retrieve the fetch size in session callbacks. This enables CQL retrieval. Previously, CQL retrieval saw a class that didn't implement CqlProvider and reported therefore unknown CQL. See #1186
We now use nested classes implementing CqlProvider to retrieve the fetch size in session callbacks. This enables CQL retrieval. Previously, CQL retrieval saw a class that didn't implement CqlProvider and reported therefore unknown CQL. See #1186
the
getSql
method execute every time.spring-data-cassandra/spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/cql/ReactiveCqlTemplate.java
Line 306 in 889a3d6
The text was updated successfully, but these errors were encountered: