Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MySQL Statistics - Total number of SET queries - The variable Com_set_option

Posted on 2011-03-22
3
Medium Priority
?
1,051 Views
Last Modified: 2012-05-11
Hello,
what exactly means the global variable Com_set_option and what could possibly
cause its high value? Our server shows the value of set_option much higher then other
usual types of queries (select, delete, update, insert)...

SHOW GLOBAL STATUS LIKE 'Com_se%';
+----------------+-----------+
| Variable_name  | Value     |
+----------------+-----------+
| Com_select     | 70734941  |
| Com_set_option | 443627648 |
+----------------+-----------+

Thanks,
A24Expert
0
Comment
Question by:a24expert
2 Comments
 
LVL 26

Accepted Solution

by:
Tomas Helgi Johannsson earned 2000 total points
ID: 35219063
           Hi!

This variable shows how many times the SET command has been issued
http://dev.mysql.com/doc/refman/5.1/en/set-option.html
and that counter should be higher than com_select counter as set command is usually issued
more often than a select,update,insert or delete statement within a single transaction.
http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-scripting-structures.html

Hope this helps.

Regards,
   Tomas Helgi
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 37319191
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Recursive SQL is one of the most fascinating and powerful and yet dangerous feature offered in many modern databases today using a Common Table Expression (CTE) first introduced in the ANSI SQL 99 standard. The first implementations of CTE began ap…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question