question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve the efficiency of MySQL preparedBatch

See original GitHub issue

Currently prepareBatch implementation in MySQL is just an emulation for executing preparedQuery several times, MySQL Client/Server protocol does not support pipelining the requests therefore users don’t benefit much in respect of performance.

MySQL JDBC Connector provides an option rewriteBatchedStatements to combine multiple inserts into one insert command, this will make better utilization of network because it reduces the round trips here. I think we could support this useful feature in the MySQL client.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:23 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
vietjcommented, Sep 3, 2021

thanks @Sanne , my opinion is that a client should in practice remains agnostic of SQL that is tied to the application

On Fri, Sep 3, 2021 at 8:52 AM Sanne Grinovero @.***> wrote:

yes sure Hibernate could support this theoretically, but rather than aggregation of individually generated SQL statements I would prefer to generate the optimal SQL right away.

Which implies it would be best to wait for Hibernate 6, if that’s possible?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eclipse-vertx/vertx-sql-client/issues/423#issuecomment-912302224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABXDCU4ZNZRPTFIPBWTWU3UABWEHANCNFSM4IYKUY5Q .

1reaction
vietjcommented, Sep 2, 2021

I will try to find a supportable solution to this

Read more comments on GitHub >

github_iconTop Results From Across the Web

MySQL Performance Tuning Tips To Optimize Database
Here are the MySQL performance tuning tips you need to know for efficient database optimization. Optimize MySQL queries for faster database ...
Read more >
MySQL Performance Tuning: 14 Optimization Tips - phoenixNAP
Improve MySQL performance with these tips. Our tuning guide shows you how to identify MySQL performance bottlenecks and optimize your ...
Read more >
Tips to Improve MySQL Query Performance - Bridge Global
Let's dive into the essential and useful tips to improve MySQL Query for speed and performance. 1. Optimize Your Database. You need to...
Read more >
MySQL Performance Tuning Tips (that work in 2022) - Devart
MySQL query optimization. Now let's have a look at how to optimize MySQL query for better performance and speed. For those who want...
Read more >
MySQL Performance Tuning: Top 10 Easy Tips - Oracle Blogs
MySQL is a proven, reliable database that is quick to set up easy to maintain ... However, that performance can usually be improved...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found