Extremely slow filter performance in 7.1.13

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
nate
Posts: 4
Joined: Mon 09 May 2016 16:36

Extremely slow filter performance in 7.1.13

Post by nate » Mon 09 May 2016 16:41

I'm using the filtering feature in the data grid. When filtering on an indexed column, it is extremely slow.

For example, I have a table with millions of rows. I tried to filter on the `id` column. In the MySQL logs, I see this query issued by dbForge:

Code: Select all

SELECT * FROM (SELECT * FROM my_dbname.users) subquery WHERE id = 12321677 limit 0,1000
That's a bad query -- it does a full table scan.

I remember the filter being faster in previous versions. Did something change?

alexa

Re: Extremely slow filter performance in 7.1.13

Post by alexa » Tue 10 May 2016 09:43

We will fix this issue in one of the next product builds and will notify you once it's available for downloading.

nate
Posts: 4
Joined: Mon 09 May 2016 16:36

Re: Extremely slow filter performance in 7.1.13

Post by nate » Thu 11 Aug 2016 15:26

Is this fix available yet?

nate
Posts: 4
Joined: Mon 09 May 2016 16:36

Re: Extremely slow filter performance in 7.1.13 and 7.1.20

Post by nate » Wed 14 Sep 2016 20:37

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.

alexa

Re: Extremely slow filter performance in 7.1.13

Post by alexa » Thu 15 Sep 2016 08:51

Unfortunately, it's still to be fixed.

nate
Posts: 4
Joined: Mon 09 May 2016 16:36

Re: Extremely slow filter performance in 7.1.13

Post by nate » Fri 18 Nov 2016 18:29

I just tried version 7.2.34 and this seems to be fixed!! Is that correct? :D

alexa

Re: Extremely slow filter performance in 7.1.13

Post by alexa » Fri 18 Nov 2016 18:44

That's right, it's fixed.

Post Reply