You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/09/23 08:53:37 UTC

[GitHub] [incubator-seatunnel] mosence opened a new issue, #2861: [Feature][Discuss] Uneven data distribution.

mosence opened a new issue, #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861

   ### Search before asking
   
   - [X] I had searched in the [feature](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   In fact, there are often abnormal data, such as partition key value range in  [1, 10000] 100, 99 datas in [1-100], and 1 data is 10000.
   
   In addition, among 100 pieces of data, 99 pieces of data have a total size of 1mb, and one piece of data has a total size of 10mb.
   
   Can we resolve this problem?
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] liugddx commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
liugddx commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1330713458

   https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/


-- 
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] Hisoka-X commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1331576060

   > > https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
   > 
   > Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
   
   Hash maybe have some problem in single database, the each split read data may discontinuous, the preformance not good. And how to use sql to describe it also is a problem.


-- 
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] github-actions[bot] commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1304944551

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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] github-actions[bot] commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1368133032

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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] github-actions[bot] closed issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #2861: [Feature][Discuss] Uneven data distribution.
URL: https://github.com/apache/incubator-seatunnel/issues/2861


-- 
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] Hisoka-X commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1331680534

   > > > > https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
   > > > 
   > > > 
   > > > Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
   > > 
   > > 
   > > Hash maybe have some problem in single database, the each split read data may discontinuous, the preformance not good. And how to use sql to describe it also is a problem.
   > 
   > SQL needs to be in the dialect and needs to be tested and optimized for performance.
   > 
   > ```
   > select * from test where id mod 2=1
   > ```
   
   Seem like every split will scan all data.


-- 
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] liugddx commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
liugddx commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1329054610

   This is a good issue.Temporarily assigned to me.


-- 
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] ic4y commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
ic4y commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1331698947

   > > > > > https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
   > > > > 
   > > > > 
   > > > > Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
   > > > 
   > > > 
   > > > Hash maybe have some problem in single database, the each split read data may discontinuous, the preformance not good. And how to use sql to describe it also is a problem.
   > > 
   > > 
   > > SQL needs to be in the dialect and needs to be tested and optimized for performance.
   > > ```
   > > select * from test where id mod 2=1
   > > ```
   > 
   > Seem like every split will scan all data.
   
   This is related to the storage form of the data, may or may not. But often there will be some performance loss


-- 
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] github-actions[bot] commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1374301138

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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] github-actions[bot] commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1292809787

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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] liugddx commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
liugddx commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1330716955

   > https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
   
   Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
   


-- 
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] github-actions[bot] closed issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #2861: [Feature][Discuss] Uneven data distribution.
URL: https://github.com/apache/incubator-seatunnel/issues/2861


-- 
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] Hisoka-X commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1257550211

   It seems that we need a more personalized sharding algorithm, including the size and quantity of data, and then for different sources, we can provide a unified interface, which can be implemented by the Connector that can support this sharding algorithm.


-- 
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] liugddx commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
liugddx commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1331703746

   Yeah, but not all primary keys are numeric and that's something to think about
   
   &nbsp;
   
   Best Regards
   
   
   liugddx
   ***@***.***
   
   
   &nbsp;
   
   
   
   
   ------------------&nbsp;Original&nbsp;------------------
   From: ***@***.***&gt;; 
   Date: 2022年11月30日(星期三) 下午2:26
   To: ***@***.***&gt;; 
   Cc: ***@***.***&gt;; ***@***.***&gt;; 
   Subject: Re: [apache/incubator-seatunnel] [Feature][Discuss] Uneven data distribution. (Issue #2861)
   
   
   
   
   
         
   https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
     
   Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
     
   Hash maybe have some problem in single database, the each split read data may discontinuous, the preformance not good. And how to use sql to describe it also is a problem.
     
   SQL needs to be in the dialect and needs to be tested and optimized for performance.
    select * from test where id mod 2=1   
   Seem like every split will scan all data.
     
   This is related to the storage form of the data, may or may not. But often there will be some performance loss
    
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you were assigned.Message ID: ***@***.***&gt;


-- 
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] liugddx commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
liugddx commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1330717892

   > > https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
   > 
   > Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
   
   @ic4y @Hisoka-X Do you have any good suggestions?


-- 
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] liugddx commented on issue #2861: [Feature][Discuss] Uneven data distribution.

Posted by GitBox <gi...@apache.org>.
liugddx commented on issue #2861:
URL: https://github.com/apache/incubator-seatunnel/issues/2861#issuecomment-1331666434

   > > > https://shardingsphere.apache.org/document/current/en/dev-manual/sharding/
   > > 
   > > 
   > > Regarding the jdbc data source, most of the primary keys may be data such as uuid. We can't just be restricted to numeric types,hash mode is a better sharding method, of course we can provide more sharding methods.
   > 
   > Hash maybe have some problem in single database, the each split read data may discontinuous, the preformance not good. And how to use sql to describe it also is a problem.
   
   SQL needs to be in the dialect and needs to be tested and optimized for performance.
   
   ```
   select * from test where id mod 2=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