Open kingeasternsun opened 6 years ago
Hello!
Are you able to share more information?
Particularly, it would be useful if you could produce a fast result with database/sql
+ your driver that is also a slow result in sqlx. There is very little that sqlx does on the actual query execution path, so problems like these are usually to do with configuration, query execution plans, or the driver layer.
thx for your reply, 1 they are the same databases
this is output of software using sqlx,takes 1.513185157s :
execute the same command in mysql, only takes 0.02754125s ( to avoid the cache, another test use different mac ,but both have same rows in the table)
the table totally has 1598321 rows,and the query result above has 183 results.