-
Notifications
You must be signed in to change notification settings - Fork 38.2k
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
Add DatabaseClient bind variant for list of positioned parameters #33274
Comments
Sorry but this is not enough for us to go on. How did you measure that this was a performance bottleneck? Do you have profiling data to back this up? I'm closing this issue for now, we can reopen if we get actual data. |
Hello @bclozel , thanks for your reply. I've added some actual data.Could you please check the issue again? |
I have looked at this and I think you are misusing the API. The If you are indeed calling |
@bclozel, I know this api bindValues(Map<String, ?> source), but needed is such as bindValues(Map<Integer, ?> source). |
In this case, we should consider this as a variant of #27282. Your |
@wanyongx a new |
https://github.com/spring-projects/spring-framework/blob/65faca8236124e0ae37ff68afc2366f7ccf286d2/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DefaultDatabaseClient.java#L264C2-L274C4
these bind methods new too many times when many binds.
A batch interface can be provided or some optimize so that the following two objects can be created only once
I do a test to check the performance:
the result is
more details, my project need insert large amount of data , about 3000 bind parameters per second. The cpu is high. I analyze to here according to the flame diagram.
The text was updated successfully, but these errors were encountered: