Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Performance on queries over DUAL table

Performance on queries over DUAL table

2007-04-10       - By Jose Dillet

 Back
Reply:     1     2     3  

Hello,



We have an application with JBoss and MaxDB 7.5.00.23 that I?m monitoring to
try to find performance bottlenecks. We?ve enabled the resource monitor as
explained in MaxDB performance tuning primer article. When I check the
results gathered, I see some strange results with queries over dual table:

SQL_STATEMENT           CALL_COUNT ROWS_READ ROWS_QUAL PCT_ROWS
VIRTUAL_READS RUNTIME        MIN_RUNTIME MAX_RUNTIME PHYSICAL_IO

SELECT * FROM DUAL     164              1128894       682042         0      
        3213934
347.271943  .000053          150.694322     58398


JBoss has a pool of connections, so, every time a connection is taken from
pool, jboss executes a SELECT * FROM DUAL to check that this connection is
still alive and working (this is configured at jboss datasource level). We
do this query because is the simplest query that could be done. But, as you
see, there was an execution with 150 secs, and cumulated runtime of 347
secs. I think this is too much time for so simple query. But, data of
ROWS_READ and ROWS_QUAL seems even stranger. Over a million rows read for
164 queries, and 600k rows qualified (rows that match criteria), but DUAL
has only 1 row (I?ve checked it and there isn?t other DUAL tables of other
users, so this query goes over DBA.DUAL, the one with only one row and one
field).



Do you think that this behaviour is a bug?



Best regards,



Jose Dillet

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con
MSN Entretenimiento. http://entretenimiento.msn.es/


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/maxdb?unsub=mysql@(protected)