qwaszx92717 edited a comment on issue #8528:
URL: https://github.com/apache/shardingsphere/issues/8528#issuecomment-742914942


   > Hi @qwaszx92717 ,
   > 
   > Thanks for your info.
   > ShardingSphere helps user handle SQLs queried in a database cluster 
though, the consuming time your provided is longer than expected.
   > The actual SQL is executed in MySQL using the index, isn't it?
   > Have you ever counted how many seconds one actual SQL takes? I am curious 
where that `15s` is used.
   
   I'm sorry I didn't make it clear. I'll give you another description
   The problem I have encountered is that when there are too many query 
conditions, the query speed will be very slow. When 'in' params are 5000 or 
more , the query time will be about 10 seconds. 
   (select * from table where FILEINDEXID in('1021725517717865',......)
   
   This colunm have index.
   KEY `FILEID` (`FILEID`) USING BTREE
   
   excute record
   
![1607676359(1)](https://user-images.githubusercontent.com/24630042/101882701-33e85580-3bd1-11eb-9c5e-6ee8f65ff809.jpg)
   
   
   When I execute the SQL directly in one of the sharding tables of a sharding 
database, the query speed is faster (about 0.2S)
   (select * from table_1 where FILEINDEXID in('1021725517717865',......)
   
   after troubleshooting 
   Sharding log has no information when executing SQL.When the execution is 
completed, the following log will be printed.
   
![image](https://user-images.githubusercontent.com/24630042/101449975-b4564e80-3964-11eb-884b-40bedcb09ab0.png)
   
   When printing stack information, the stack information for executing SQL is 
as follows
   
![image](https://user-images.githubusercontent.com/24630042/101882785-4cf10680-3bd1-11eb-9850-d1bb996b928c.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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to