Unfortunately this bug is still there in 7.1.20 and it's a big issue.
I opened one of our large tables, clicked the "filter" symbol at the top of the "id" column and looked for an id. dbForge Studio issued the following query, which I had to kill at the server:
Code: Select all
SELECT * FROM (SELECT * FROM my_db.a_large_table
) subquery WHERE id = 555555555 limit 0,1000
The table has more than 1 billion rows, and EXPLAIN shows that it does a full table scan. Of course it should have issued an efficient query like `SELECT * FROM my_db.a_large_table WHERE id=555555555`.
What's worse is that dbForge Studio issued a similar query when I simply clicked the id column header, to sort by that column:
Code: Select all
SELECT * FROM (SELECT * FROM my_db.a_large_table
) subquery ORDER BY id limit 0,1000
Not only is this slow, but it loads down our server with these giant queries. For now we've stopped using dbForge Studio and are using (a competing product). I personally prefer dbForge Studio and hope this gets resolved.