You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "TaoZex (via GitHub)" <gi...@apache.org> on 2023/01/23 09:33:25 UTC
[GitHub] [incubator-seatunnel] TaoZex opened a new pull request, #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
TaoZex opened a new pull request, #3988:
URL: https://github.com/apache/incubator-seatunnel/pull/3988
<!--
Thank you for contributing to SeaTunnel! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
Feel free to ping committers for the review!
## Contribution Checklist
- Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
- Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
- Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
-->
## Purpose of this pull request
Use configļ¼fake souce to mysql sinkļ¼parallelism = 1
Test the total data of 1w, 10w, and 100w respectively, and use batch size from 100 to 10000 to select appropriate parameters for jdbc sink.
The results are shown in the figure below:
<img width="758" alt="image" src="https://user-images.githubusercontent.com/45089228/214006573-80c0f498-50df-41e0-89a4-d3d8eb5f5b8d.png">
To sum up, using bacth size 2000 is a better choice.
## Check list
* [ ] Code changed are covered with tests, or it does not need tests for reason:
* [ ] If any new Jar binary package adding in your PR, please add License Notice according
[New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/contribution/new-license.md)
* [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
* [ ] If you are contributing the connector code, please check that the following files are updated:
1. Update change log that in connector document. For more details you can refer to [connector-v2](https://github.com/apache/incubator-seatunnel/tree/dev/docs/en/connector-v2)
2. Update [plugin-mapping.properties](https://github.com/apache/incubator-seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
3. Update the pom file of [seatunnel-dist](https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-dist/pom.xml)
* [ ] Update the [`release-note`](https://github.com/apache/incubator-seatunnel/blob/dev/release-note.md).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] TaoZex closed pull request #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
Posted by "TaoZex (via GitHub)" <gi...@apache.org>.
TaoZex closed pull request #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
URL: https://github.com/apache/incubator-seatunnel/pull/3988
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] hailin0 commented on pull request #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on PR #3988:
URL: https://github.com/apache/incubator-seatunnel/pull/3988#issuecomment-1413319746
> Different system environments and different data sizes may result in different results.
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] EricJoy2048 commented on pull request #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
Posted by "EricJoy2048 (via GitHub)" <gi...@apache.org>.
EricJoy2048 commented on PR #3988:
URL: https://github.com/apache/incubator-seatunnel/pull/3988#issuecomment-1410261747
> For this kind of test, I don't think it has any meaning. Different system environments and different data sizes may result in different results.
Yes, I agree with you. So @TaoZex can you close this pr?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] TyrantLucifer commented on pull request #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
Posted by "TyrantLucifer (via GitHub)" <gi...@apache.org>.
TyrantLucifer commented on PR #3988:
URL: https://github.com/apache/incubator-seatunnel/pull/3988#issuecomment-1400581864
Could you please do the same test case on another type database such as `Postgre` `Oracle` and so on?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-seatunnel] TaoZex commented on pull request #3988: [Improve][Connector-V2][JDBC] Test to select the appropriate batch size for jdbc sink
Posted by "TaoZex (via GitHub)" <gi...@apache.org>.
TaoZex commented on PR #3988:
URL: https://github.com/apache/incubator-seatunnel/pull/3988#issuecomment-1413350827
> > For this kind of test, I don't think it has any meaning. Different system environments and different data sizes may result in different results.
>
> Yes, I agree with you. So @TaoZex can you close this pr?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org