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/04/16 08:34:14 UTC

[GitHub] [incubator-shardingsphere] LikeBigCat opened a new issue #5209: when parse SQL with many parameters, it will be very slow

LikeBigCat opened a new issue #5209: when parse SQL with many parameters, it will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209
 
 
   when parse SQL with many parameters, it will be very slow,
   version:4.0.1
   for example,this sql will be use 1.5s
   sql:SELECT count(0) FROM prescription WHERE id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND store_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

----------------------------------------------------------------
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

[GitHub] [incubator-shardingsphere] LikeBigCat commented on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
LikeBigCat commented on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209#issuecomment-614993607
 
 
   for every "new" SQL, parse engine should re-parse. Parse need spend lots times. I don't think it's a problem.
   my problem is  when parse SQL with a lot of parameters   and the number of parameters is uncertain,the number of parameters may be 500 or 501,unable to cache 。
   Why the number of parameters is so large that parsing is slow ??I think this 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [shardingsphere] liuzhiguo630 commented on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

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


   > for every "new" SQL, parse engine should re-parse. Parse need spend lots times. I don't think it's a problem.
   > my problem is when parse SQL with a lot of parameters and the number of parameters is uncertain,the number of parameters may be 500 or 501,unable to cache 。
   > Why the number of parameters is so large that parsing is slow ??I think this is a problem
   
   +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.

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



[GitHub] [incubator-shardingsphere] kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209#issuecomment-614548715
 
 
   this is a known issue,duplicated with https://github.com/apache/incubator-shardingsphere/issues/3215 , you can improve your sqls via the referred issue.
   
   and related if https://github.com/apache/incubator-shardingsphere/issues/3853 https://github.com/apache/incubator-shardingsphere/issues/4480 
   
   
   

----------------------------------------------------------------
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

[GitHub] [incubator-shardingsphere] kimmking closed issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
kimmking closed issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209
 
 
   

----------------------------------------------------------------
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

[GitHub] [incubator-shardingsphere] kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209#issuecomment-614548715
 
 
   this is a known issue,duplicated with https://github.com/apache/incubator-shardingsphere/issues/3215 , you can improve your sqls via the referred issue.
   
   and related of #3853 #4480 #2318
   
   

----------------------------------------------------------------
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

[GitHub] [incubator-shardingsphere] kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209#issuecomment-614548715
 
 
   this is a known issue,duplicated with https://github.com/apache/incubator-shardingsphere/issues/3215 , you can improve your sqls via the referred issue.
   
   and related if https://github.com/apache/incubator-shardingsphere/issues/3853 https://github.com/apache/incubator-shardingsphere/issues/4480 
   https://github.com/apache/incubator-shardingsphere/issues/2318
   
   

----------------------------------------------------------------
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

[GitHub] [incubator-shardingsphere] kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209#issuecomment-614548715
 
 
   this is a known issue,duplicated with https://github.com/apache/incubator-shardingsphere/issues/3215 , you can improve your sqls via the referred issue.
   
   and related if https://github.com/apache/incubator-shardingsphere/issues/3853 https://github.com/apache/incubator-shardingsphere/issues/4480 
    https://github.com/apache/incubator-shardingsphere/issues/2318
   
   

----------------------------------------------------------------
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

[GitHub] [shardingsphere] liuzhiguo630 edited a comment on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

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


   > for every "new" SQL, parse engine should re-parse. Parse need spend lots times. I don't think it's a problem.
   > my problem is when parse SQL with a lot of parameters and the number of parameters is uncertain,the number of parameters may be 500 or 501,unable to cache 。
   > Why the number of parameters is so large that parsing is slow ??I think this is a problem
   
   +1
   This problem didn't be resolved. The root problem are terrible performance.


----------------------------------------------------------------
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



[GitHub] [incubator-shardingsphere] kimmking commented on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #5209: when parse SQL with many parameters, SQLParseEngine#parse0 method will be very slow
URL: https://github.com/apache/incubator-shardingsphere/issues/5209#issuecomment-614548715
 
 
   this is a known issue,duplicated with https://github.com/apache/incubator-shardingsphere/issues/3215 .
   and related if https://github.com/apache/incubator-shardingsphere/issues/3853 https://github.com/apache/incubator-shardingsphere/issues/4480 
   
   
   

----------------------------------------------------------------
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