LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 05-02-2017, 12:43 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,376

Rep: Reputation: 118Reputation: 118
LXer: How to speed up your MySQL queries 300 times


Published at LXer:

Before you can profile slow queries, you need to find them.MySQL has a built-in slow query log. To use it, open the my.cnf file and set the slow_query_log variable to "On." Set long_query_time to the number of seconds that a query should take to be considered slow, say 0.2. Set slow_query_log_file to the path where you want to save the file. Then run your code and any query above the specified threshold will be added to that file.read more

Read More...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Monitor MySQL connections and queries with mytop LXer Syndicated Linux News 0 02-02-2015 05:40 PM
LXer: How to find and kill misbehaving MySQL queries LXer Syndicated Linux News 0 07-02-2014 08:10 AM
LXer: Building Queries Visually in MySQL Query Browser LXer Syndicated Linux News 0 04-25-2008 01:50 PM
cpu speed governor and wireless queries kanwar_rajan Linux - Laptop and Netbook 3 02-28-2007 09:51 PM
LXer: E-mail from MySQL includes 9,300 customers addresses LXer Syndicated Linux News 0 06-16-2006 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration