Re: How to view Query Execution time

2011-08-01 Thread Jon Siebert
http://dev.mysql.com/doc/refman/5.1/en/query-log.html information on query log may become useful for you in the future. Also, search the slow query log, which also may help you in the future On Mon, Aug 1, 2011 at 11:54 AM, Prabhat Kumar wrote: > you can also use EXPLAIN, which will give you much

Re: How to view Query Execution time

2011-08-01 Thread Prabhat Kumar
you can also use EXPLAIN, which will give you much more details. http://dev.mysql.com/doc/refman/5.5/en/execution-plan-information.html http://www.techiequest.com/mysql-visual-explain-hierarchical-view-of-query-execution-plan/ On Sun, Jul 31, 2011 at 11:45 PM, Suresh Kuna wrote: > Usually, at the

Re: How to view Query Execution time

2011-07-31 Thread Suresh Kuna
Usually, at the end of the query running it displays the time how much it took. Or else enable the profiling and run the query to check the exact time it took for execution at all levels. On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma wrote: > Dear all, > > I want to know how much time did it ta

How to view Query Execution time

2011-07-31 Thread Adarsh Sharma
Dear all, I want to know how much time did it take to run a sample query. In postgresql, we enable timing by \timing command. Is there is any way to enable in Mysql Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/my

Re: Execution Time

2010-09-02 Thread Jangita
On 02/09/2010 10:53 a, Vikram A wrote: Hi, I have doubt on the execution time. Can any one help me! Which operation will take much time INSERT or UPDATE ? Thank you Vikram Depends on the type of data, but generally (and I say this lightly) inserts are faster then updates; alot depends on

Execution Time

2010-09-02 Thread Vikram A
Hi, I have doubt on the execution time. Can any one help me! Which operation will take much time INSERT or UPDATE ? Thank you Vikram

Re: Query execution time - MySQL

2008-05-14 Thread Eric Frazier
Neil Tompkins wrote: Thanks for your help. In the end I've decided to use GetTickCount() Neil Date: Wed, 14 May 2008 13:44:22 +0100> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: mysql@lists.mysql.com> Subject: Re: Query execution time - MySQL> > Hi Neil,

RE: Query execution time - MySQL

2008-05-14 Thread Neil Tompkins
Thanks for your help. In the end I've decided to use GetTickCount() Neil > Date: Wed, 14 May 2008 13:44:22 +0100> From: [EMAIL PROTECTED]> To: [EMAIL > PROTECTED]> CC: mysql@lists.mysql.com> Subject: Re: Query execution time - > MySQL> > Hi Neil,> >

RE: Query execution time - MySQL

2008-05-14 Thread Neil Tompkins
]> CC: mysql@lists.mysql.com> Subject: Re: Query execution time - > MySQL> > Hi Neil,> > If your using Linux then you have to install the glib > RPM's in the usual > way. I don't know about other platforms, but I am sure > there will be a > version of glib

Re: Query execution time - MySQL

2008-05-14 Thread Ben Clewett
9:09 +0100 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: [EMAIL PROTECTED]; mysql@lists.mysql.com > Subject: Re: Query execution time - MySQL > > If you using C++ then you can use this: > > http://developer.gimp.org/api/2.0/glib/glib-Timers.html >

Re: Query execution time - MySQL

2008-05-14 Thread Ben Clewett
time the query actually took or do I need to do this outside of my query. Regards Neil Date: Wed, 14 May 2008 07:21:04 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: Query execution time - MySQLCC: [EMAIL PROTECTED] Niel,Not much detail there (but I'll go off what you provided...). S

RE: Query execution time - MySQL

2008-05-14 Thread Neil Tompkins
e the query actually took or do I need to do this outside of my query. Regards Neil Date: Wed, 14 May 2008 07:21:04 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: Query execution time - MySQLCC: [EMAIL PROTECTED] Niel,Not much detail there (but I'll go off what you provided...). Some pe

Re: Query execution time - MySQL

2008-05-14 Thread Craig Huffstetler
limit them. So, in essence, I guess we can extract that data and get it back to you for whatever usage statistic you are looking to measure. ( See: http://www.bigresource.com/MYSQL-what-is-execution-time-of-a-query-based-on-was-a-mysql-question--0PxW0B3P.html) or for usage in JDBC by callin

Query execution time - MySQL

2008-05-14 Thread Neil Tompkins
Hi, When performing a SQL query like SELECT Name FROM Customers. How do I obtain the time in which the query took to execute like 1.5 seconds etc Thanks, Neil _ All new Live Search at Live.com http://clk.atdmt.com/UKM/go/msnnkm

Re: Insane execution time for JOIN query

2006-09-01 Thread dpgirago
>> On 8/31/06, Harrison Fisk ** <[EMAIL PROTECTED]> *** wrote: >> Hello, >> >> On Aug 31, 2006, at 5:12 AM, Kim Christensen wrote: >> >>> Hey list; >>> >>> I posted this message under an earlier thread which touched the same >>> subject - but I realized my case could be slightly different,

Re: Insane execution time for JOIN query

2006-08-31 Thread Kim Christensen
On 8/31/06, Harrison Fisk <[EMAIL PROTECTED]> wrote: Hello, On Aug 31, 2006, at 5:12 AM, Kim Christensen wrote: > Hey list; > > I posted this message under an earlier thread which touched the same > subject - but I realized my case could be slightly different, thus > posting a new thread here.

Re: Insane execution time for JOIN query

2006-08-31 Thread Harrison Fisk
Hello, On Aug 31, 2006, at 5:12 AM, Kim Christensen wrote: Hey list; I posted this message under an earlier thread which touched the same subject - but I realized my case could be slightly different, thus posting a new thread here. Sorry for any inconvenience. I have two tables, one of which

Re: Insane execution time for JOIN query

2006-08-31 Thread mos
Kim, The first thing I'd do is run a MyISAMChk on the table to see if the index is damaged. The second thing I'd do is run Optimize on the tables regularly because after a lot of rows have been deleted it leaves holes in the table which slows down table performance. Of course you can

Re: Insane execution time for JOIN query

2006-08-31 Thread Kim Christensen
On 8/31/06, Brent Baisley <[EMAIL PROTECTED]> wrote: hmmm, not sure why it's only scanning 89K records from the products table, I would think it would scan the whole table. It is scanning the entire items table, which I would think it wouldn't do. Well, the query in question actually did do so

Re: Insane execution time for JOIN query

2006-08-31 Thread Brent Baisley
emory settings? SHOW VARIABLES LIKE "%buffer_size" - Original Message - From: "Kim Christensen" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Thursday, August 31, 2006 9:12 AM Subject: Re: Insane execution time for JOIN query On 8/31/06, Brent Baisley <

Re: Insane execution time for JOIN query

2006-08-31 Thread Kim Christensen
hanged from default. - Original Message - From: "Kim Christensen" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Thursday, August 31, 2006 5:12 AM Subject: Insane execution time for JOIN query > Hey list; > > I posted this message under an earlier thread

Re: Insane execution time for JOIN query

2006-08-31 Thread Brent Baisley
: "Kim Christensen" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Thursday, August 31, 2006 5:12 AM Subject: Insane execution time for JOIN query Hey list; I posted this message under an earlier thread which touched the same subject - but I realized my case could be slightly

Insane execution time for JOIN query

2006-08-31 Thread Kim Christensen
Hey list; I posted this message under an earlier thread which touched the same subject - but I realized my case could be slightly different, thus posting a new thread here. Sorry for any inconvenience. I have two tables, one of which is a list over products which all have unique product id's (pr

RE: How to log the execution time of each query

2006-07-11 Thread Rithish Saralaya
> I would like to log the execution time for each query in my MySQL server > .Is there any possible way? If you are using MySQL to serve an application, then it is advisable to do the logging through the application scripts. For in most cases, you might require more information other tha

Re: How to log the execution time of each query

2006-07-11 Thread Dan Buettner
execution time, however. Mukul, can you elaborate on why the slow query log doesn't suffice? Dan On 7/11/06, Barry <[EMAIL PROTECTED]> wrote: Saha, Mukul (Cognizant) schrieb: > Hi, > > I would like to log the execution time for each query in my MySQL server > .Is there any possi

Re: How to log the execution time of each query

2006-07-11 Thread Barry
Saha, Mukul (Cognizant) schrieb: Hi, I would like to log the execution time for each query in my MySQL server .Is there any possible way? Please not that, the - log-slow-queries option will not suffice for my requirement. Thanks & Regards Mukul Saha Hi, Well there is no option

How to log the execution time of each query

2006-07-10 Thread Saha, Mukul \(Cognizant\)
Hi, I would like to log the execution time for each query in my MySQL server .Is there any possible way? Please not that, the - log-slow-queries option will not suffice for my requirement. Thanks & Regards Mukul Saha ___ Cognizant Techno

Re: Execution time of "show databases" increases when fewer databasesare visible

2006-04-21 Thread Alexey Polyakov
On 4/21/06, Nico Sabbi <[EMAIL PROTECTED]> wrote: > the more databases a user has the less time it takes to execute "show > databases" and vice versa: If no rows in `show databases` output appear because some user has some table/columns privs but no db privs for a database in question, then I thi

Re: Execution time of "show databases" increases when fewer databasesare visible

2006-04-21 Thread Alexey Polyakov
On 4/21/06, Nico Sabbi <[EMAIL PROTECTED]> wrote: > Is this behaviour due to a bug or maybe my mysql tables are messed up? I'm not sure if we can call it a bug. But spending 8 seconds (and using 100% CPU) for a simple SHOW DATABASES query is a bit too much, and should be fixed. mysqld first read

Execution time of "show databases" increases when fewer databasesare visible

2006-04-21 Thread Nico Sabbi
Hi, I have a strange and annoying problem with Mysql 4.0.26 that I hope someone will help me to fix: the more databases a user has the less time it takes to execute "show databases" and vice versa: show databases; +--+ 5 rows in set (7.97 sec) ---

Re: Maximum execution time?

2005-10-15 Thread Gleb Paharenko
Hello. There is no builtin possibility for this, but you may write your own tool which will be parsing the output of 'mysqladmin processlist' and invoke 'mysqladmin kill' for long threads. John Ricci wrote: > Hi > > Is there a way to setup a maximum que

Maximum execution time?

2005-10-14 Thread John Ricci
Hi Is there a way to setup a maximum query execution time per user. I understand the options max_connections and max_questions. But I am looking for a way to kill a query per user if it takes longer than XX minutes! Thanks John -- MySQL General Mailing List For list archives: http

Re: Query execution time?

2004-09-17 Thread Egor Egorov
joe mcguckin <[EMAIL PROTECTED]> wrote: > Does the mysql server return to the client (DBI in this case) the query > execution time? If so, how do I retrieve it? my $_startTime = time; $dbh->do("INSERT INTO dinner VALUES ('chicken','grille')"); prin

Re: Query execution time?

2004-09-16 Thread Aman Raheja
As far as I know there isn't a way, though ideally there should be to do so. I would also look more for the answer and ask you to post it on the PER DBI mailinglist. Thanks Aman Raheja joe mcguckin wrote: Does the mysql server return to the client (DBI in this case) the query execution tim

Query execution time?

2004-09-15 Thread joe mcguckin
Does the mysql server return to the client (DBI in this case) the query execution time? If so, how do I retrieve it? Thanks, Joe -- Joe McGuckin ViaNet Communications 994 San Antonio Road Palo Alto, CA 94303 Phone: 650-213-1302 Cell: 650-207-0372 Fax: 650-969-2124 -- MySQL General

RE: Query Execution Time in mysql

2003-06-25 Thread Mike Hillyer
nal Message- > From: Amit Lonkar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 9:33 PM > To: [EMAIL PROTECTED] > Subject: Query Execution Time in mysql > > > Hi All, > > I have 2 tables say "table1" and "table2" in the > database.

RE: Re: Query Execution Time in mysql

2003-06-25 Thread [EMAIL PROTECTED]
I think we need more info: Table definition, MySQL version etc.. Med venlig hilsen Lars Geisler > > -Original Message- > From: "Roman Neuhauser" <[EMAIL PROTECTED]> > To: "Amit Lonkar" <[EMAIL PROTECTED]> > CC: "[EMAIL PROTECTED]"

Re: Query Execution Time in mysql

2003-06-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-06-24 20:32:48 -0700: > insert into table1 select * from table2; > > Table2 has some 10,000 records while table1 has around > 11,00,000 records. The time reqd. to execute the above > query is round about 80- 90 secs. > > The table1 has 7 columns out of which 5 are comp

Query Execution Time in mysql

2003-06-24 Thread Amit Lonkar
Hi All, I have 2 tables say "table1" and "table2" in the database. I am using the following query to copy all the data from table2 to table1. insert into table1 select * from table2; Table2 has some 10,000 records while table1 has around 11,00,000 records. The time reqd. to execute the above qu

Re: Query Execution Time Perl/DBD

2001-11-21 Thread Gordan Bobic
On Wednesday 21 Nov 2001 12:11, Christian Andersson wrote: > The obvious way to do this would be to get the time before and after the > execution and then make a simple diff (after - before) I guess that is how > the mysql client does it (butI'm not sure) > I do not think that mysql itself provid

Re: Query Execution Time Perl/DBD

2001-11-21 Thread Mike(mickalo)Blezien
wrote: >>- Original Message - >>From: "Gordan Bobic" <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Sent: Wednesday, November 21, 2001 12:49 PM >>Subject: Query Execution Time Perl/DBD >> >> >>> Hi. >>> >

Re: Query Execution Time Perl/DBD

2001-11-21 Thread Christian Andersson
PM Subject: Query Execution Time Perl/DBD > Hi. > > How do I get the query execution time from Perl/DBD? MySQL client returns > this in the console window. Is this value available through the Perl DBD > interface? > > Thanks. > > Gordan > > --

Query Execution Time Perl/DBD

2001-11-21 Thread Gordan Bobic
Hi. How do I get the query execution time from Perl/DBD? MySQL client returns this in the console window. Is this value available through the Perl DBD interface? Thanks. Gordan - Before posting, please check: http

Query Execution Time

2001-06-04 Thread Simon Windsor
Hi Within mysql, all queries return the time taken to execute, ie 20 rows in set (0.77 sec) 35 rows in set (1.33 sec) etc. Is it possible within perl, or C for that matter, to get the time taken for the MySql server to get the data ? Thanx Simon -- Simon Windsor CricInfo http://www.crici

execution time in PHP v. perl

2001-03-10 Thread Tac/Smokescreen Action Network
I'm porting some code from perl to php, and have experienced a tremedous slowdown in one particular query, and I'm perplexed as to why. The query is simply "Select * From my_table order by ID desc LIMIT 0,20", to get the last 20 records that were entered. ID is the Primary Key, and it is auto-i

Re: How to get Query Execution Time

2001-02-13 Thread Basil Hussain
Hi, > at the mysql prompt i can get the exact time taken to run each query. > how can i display this time in an HTML page via PHP. is there a function > which gives me this time Unfortunately, no, there isn't a built-in function to do this. So, you'll have to resort to some DIY. But, it's quite

How to get Query Execution Time

2001-02-13 Thread Mathew Joseph
hi there, at the mysql prompt i can get the exact time taken to run each query. how can i display this time in an HTML page via PHP. is there a function which gives me this time bye Mathew - Before posting, please check: