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 2020/03/13 03:17:56 UTC

[GitHub] [incubator-shardingsphere] codingIsCrazy commented on issue #3083: After the service restarts, the request is time-consuming in a short time

codingIsCrazy commented on issue #3083: After the service restarts, the request is time-consuming in a short time
URL: https://github.com/apache/incubator-shardingsphere/issues/3083#issuecomment-598528769
 
 
   > @terrymanu @zcjhwl It's going to be faster
   > 
   > @component
   > public class PreHeating implements InitializingBean {
   > @override
   > public void afterPropertiesSet() throws Exception {
   > Collection databaseTypes = SQLParserFactory.getAddOnDatabaseTypes();
   > for (DatabaseType databaseType:databaseTypes){
   > if("MySQL".equals(databaseType.getName())){
   > SQLParseEngine parseEngine = SQLParseEngineFactory.getSQLParseEngine(databaseType);
   > parseEngine.parse("select 'X'",true);
   > MySQLParser mySQLParser = (MySQLParser)SQLParserFactory.newInstance(databaseType,"select 'X'");
   > mySQLParser.execute();
   > }
   > }
   > }
   
   this "getAddOnDatabaseTypes" is not exist

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services