[MDEV-17633] Many slow queries in Zabbix 3.4-4.0 Created: 2018-11-07  Updated: 2018-11-07  Resolved: 2018-11-07

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.3.10
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Rostislav Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: query, slow
Environment:

CentOS 7.5, Zabbix



 Description   

I'm facing the bug in Zabbix 3.4 and 4.0 described in [1] which directs me to MySQL bug tracker [2].

Does this fixed for MariaDB 10.3.10?
Is this option optimizer_switch = 'index_condition_pushdown=off' workaround or could be used permanently?

p.s https://support.zabbix.com/browse/ZBX-10652?focusedCommentId=188169&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-188169

[1] https://www.zabbix.com/forum/zabbix-for-large-environments/50961-slow-query-problem-in-zabbix-3-2-6

[2] https://bugs.mysql.com/bug.php?id=74602



 Comments   
Comment by Alice Sherepa [ 2018-11-07 ]

It looks like the bug https://bugs.mysql.com/bug.php?id=74602 is not reproducible on MariaDB 10.3.10

MariaDB [test]> EXPLAIN SELECT * FROM t1 WHERE b = @b AND c <= NOW() AND (d IS NULL OR d >= NOW() - INTERVAL 2 DAY) AND e='BBB' ORDER BY c ASC LIMIT 1 
    -> ;
+------+-------------+-------+-------+---------------+------+---------+------+------+----------------------------------------------------+
| id   | select_type | table | type  | possible_keys | key  | key_len | ref  | rows | Extra                                              |
+------+-------------+-------+-------+---------------+------+---------+------+------+----------------------------------------------------+
|    1 | SIMPLE      | t1    | range | b,c           | b    | 16      | NULL |    2 | Using index condition; Using where; Using filesort |
+------+-------------+-------+-------+---------------+------+---------+------+------+----------------------------------------------------+
1 row in set (0.067 sec)
 
MariaDB [test]> select version();
+-----------------+
| version()       |
+-----------------+
| 10.3.10-MariaDB |
+-----------------+
1 row in set (0.000 sec)

Comment by Elena Stepanova [ 2018-11-07 ]

Please comment to re-open if you have any evidence that the problem affects MariaDB.

Generated at Thu Feb 08 08:37:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.