recently, after the company migrated sql server to mariadb, data, it found that the query efficiency was much lower.
there are now multiple data tables, each with more than 10w rows of data, and the data in the table is not unique and the index cannot be used.
with the most common LEFT JOIN,sql server, it takes a few seconds to get a result, while mariadb takes hundreds of seconds.
how should mariadb optimize configuration and query? Baidu has no suitable answer.
this is the query result of mariadb
sql server
this is a query statement. The number is not unique and the index cannot be used.
SELECT a.*, b.* FROM a, b WHERE a.type = "up" AND b.type = "up" AND a.number = b.number