You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/11/26 12:51:36 UTC

[GitHub] [shardingsphere] zt9788 opened a new issue #13822: Minimum package

zt9788 opened a new issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822


   env:
   
   JDK 1.8 
   Springboot2.5
   mybatis,mybatis-plus
   
   I just use MySQL and just want to use the basic functions of shardingsphere (sharding JDBC spring boot start)
   
   1. Read write separation
   
   2. Sharding table
   
   But now the package is too big, about 30M+
   
   Can someone tell me how many packages are needed under basic functions.
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zt9788 commented on issue #13822: Minimum package

Posted by GitBox <gi...@apache.org>.
zt9788 commented on issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822#issuecomment-981070741


   @strongduanmu I use shardingsphere-jdbc-core-spring-boot-starter and I exclusion like this:
   At present, the program seems to work normally, but I'm not sure whether there will be potential exceptions. At present, the size of the package is about 20M
   
   ```
   <dependency>
   			<groupId>org.apache.shardingsphere</groupId>
   			<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
   			<version>5.0.0</version>
   			<exclusions>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-oracle</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-postgresql</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-sqlserver</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>elasticjob-api</artifactId>
   					<groupId>org.apache.shardingsphere.elasticjob</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>elasticjob-lite-core</artifactId>
   					<groupId>org.apache.shardingsphere.elasticjob</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>elasticjob-registry-center</artifactId>
   					<groupId>org.apache.shardingsphere.elasticjob</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-encrypt-api</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-encrypt-core</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-sql92</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-cluster-mode-core</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-cluster-mode-repository-api</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-encrypt-spring-boot-starter</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   			</exclusions>
   		</dependency>
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zt9788 edited a comment on issue #13822: Minimum package

Posted by GitBox <gi...@apache.org>.
zt9788 edited a comment on issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822#issuecomment-981070741


   @strongduanmu I use shardingsphere-jdbc-core-spring-boot-starter and I exclusion like this:
   At present, the program seems to work normally, but I'm not sure whether there will be potential exceptions. At present, the size of the package is about 20M
   
   ```
   <dependency>
   			<groupId>org.apache.shardingsphere</groupId>
   			<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
   			<version>5.0.0</version>
   			<exclusions>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-oracle</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-postgresql</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-sqlserver</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>elasticjob-api</artifactId>
   					<groupId>org.apache.shardingsphere.elasticjob</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>elasticjob-lite-core</artifactId>
   					<groupId>org.apache.shardingsphere.elasticjob</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>elasticjob-registry-center</artifactId>
   					<groupId>org.apache.shardingsphere.elasticjob</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-encrypt-api</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-encrypt-core</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-sql-parser-sql92</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-cluster-mode-core</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-cluster-mode-repository-api</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   				<exclusion>
   					<artifactId>shardingsphere-encrypt-spring-boot-starter</artifactId>
   					<groupId>org.apache.shardingsphere</groupId>
   				</exclusion>
   			</exclusions>
   		</dependency>
   ```
   
   now:
   
   ![image](https://user-images.githubusercontent.com/15647179/143766563-1bd00be8-1f32-41ad-a1b3-4630122b5a6d.png)
   ![image](https://user-images.githubusercontent.com/15647179/143766573-11129316-cc4e-414b-a08a-0762a3b3bf22.png)
   ![image](https://user-images.githubusercontent.com/15647179/143766584-fb23bd74-9157-4518-94d7-a478bea9024a.png)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zt9788 commented on issue #13822: Minimum package

Posted by GitBox <gi...@apache.org>.
zt9788 commented on issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822#issuecomment-981076860


   Thanks  ,I  excluded  them ,The program can run , but the size is only 200K smaller than the last package. :(
   
   ```
   <exclusion>
   					<groupId>org.apache.shardingsphere</groupId>
   					<artifactId>shardingsphere-db-discovery-core</artifactId>
   				</exclusion>
   				<exclusion>
   					<groupId>org.apache.shardingsphere</groupId>
   					<artifactId>shardingsphere-shadow-spring-boot-starter</artifactId>
   				</exclusion>
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zt9788 closed issue #13822: Minimum package

Posted by GitBox <gi...@apache.org>.
zt9788 closed issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] strongduanmu commented on issue #13822: Minimum package

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822#issuecomment-981073768


   @zt9788 Judging from the dependencies you provide, `db-discovery` and `shadow` related APIs can be excluded. 
   
   Now, we are trying to solve the dependency problem and let users add related dependencies according to the functions used.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] strongduanmu commented on issue #13822: Minimum package

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #13822:
URL: https://github.com/apache/shardingsphere/issues/13822#issuecomment-981068814


   Hi @zt9788, thank you for your feedback. Can you show which jar packages are currently dependent 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: notifications-unsubscribe@shardingsphere.apache.org

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