Results 1 to 1 of 1
Thread: mysql query performance issue
- 08-05-2009, 10:34 AM #1
Member
- Join Date
- Jun 2009
- Posts
- 14
- Rep Power
- 0
mysql query performance issue
Hi All,
I am using testlink tool with mysql ( teamst.org/phpBB2/viewtopic.php?t=1938 ).
I have found that this query takes 54 secs to fetch data..which is not acceptable..
I am not conversant with mysql tuning...
SELECT
NHB.parent_id AS testsuite_id, NHA.parent_id AS tc_id,
NHB.node_order AS z, T.tcversion_id AS tcversion_id,
T.id AS feature_id, TCV.active,
E.id AS exec_id, E.tcversion_id AS executed,
E.testplan_id AS exec_on_tplan, UA.user_id,UA.type,
UA.status, UA.assigner_id,
COALESCE(E.status,'n') AS exec_status
FROM
nodes_hierarchy NHA JOIN nodes_hierarchy NHB ON NHA.parent_id = NHB.id
JOIN testplan_tcversions T ON NHA.id = T.tcversion_id
JOIN tcversions TCV ON NHA.id = TCV.id
JOIN executions E ON (NHA.id = E.tcversion_id AND E.testplan_id=T.testplan_id AND E.build_id=21 )
LEFT OUTER JOIN user_assignments UA ON UA.feature_id = T.id
WHERE T.testplan_id=30397
AND (UA.type=1 OR UA.type IS NULL)
AND E.status='p'
AND E.id IN ( SELECT MAX(id) FROM executions WHERE testplan_id=30397 GROUP BY tcversion_id,testplan_id )
ORDER BY testsuite_id,NHB.node_order,tc_id,E.id ASC;
Any help to bring down the sql execution time would be highly appreciated.Thanks & regards,
Lokananth Live Chat Software By miOOt
Similar Threads
-
MySQL/JDBC Mysql query output
By thelinuxguy in forum Advanced JavaReplies: 4Last Post: 02-13-2009, 01:57 AM -
Mysql/JDBC update query problem
By thelinuxguy in forum Advanced JavaReplies: 3Last Post: 02-11-2009, 09:56 PM -
Performance Issue
By hiranya in forum Threads and SynchronizationReplies: 2Last Post: 11-24-2008, 11:32 PM -
Performance issue
By mathes_n in forum Web FrameworksReplies: 8Last Post: 09-02-2008, 05:11 AM -
taglibs performance issue
By eva in forum Advanced JavaReplies: 1Last Post: 01-17-2008, 12:44 PM


LinkBack URL
About LinkBacks

Bookmarks