Anyone... anyone...
Project with 10x times the amount of bugs, but no custom fields... Very fast.
Code: Select all
1 0.0006 database_api.php:76 db_connect()
SET NAMES UTF8
2 0.0010 authentication_api.php:582 auth_is_cookie_valid()
SELECT id FROM mantis_user_table WHERE cookie_string='73a1c16a8e22a55a9b608867dc302810c11662297ae31e33327a3d6af8b60577'
3 0.0008 authentication_api.php:613 auth_get_current_user_id()
SELECT id FROM mantis_user_table WHERE cookie_string='73a1c16a8e22a55a9b608867dc302810c11662297ae31e33327a3d6af8b60577'
4 0.0011 project_api.php:66 project_cache_row()
SELECT * FROM mantis_project_table WHERE id='16'
5 0.0012 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='29'
6 0.0020 config_api.php:96 config_get()
SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table
7 0.0018 user_pref_api.php:133 user_pref_cache_row()
SELECT * FROM mantis_user_pref_table WHERE user_id='29' AND project_id='0'
8 0.0013 filter_api.php:2860 filter_db_get_filter()
SELECT * FROM mantis_filters_table WHERE id='469'
9 0.0040 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-16' AND name=''
10 0.0013 filter_api.php:2860 filter_db_get_filter()
SELECT * FROM mantis_filters_table WHERE id='181'
11 0.0013 custom_field_api.php:724 custom_field_get_ids()
SELECT id, name FROM mantis_custom_field_table ORDER BY name ASC
12 0.0059 user_api.php:828 user_get_accessible_subprojects()
SELECT DISTINCT p.id, p.name, ph.parent_id FROM mantis_project_table p LEFT JOIN mantis_project_hierarchy_table ph ON ph.child_id = p.id WHERE p.enabled = 1 AND ph.parent_id IS NOT NULL ORDER BY p.name
13 0.0012 custom_field_api.php:697 custom_field_get_linked_ids()
SELECT cft.id, cft.name, cfpt.sequence FROM mantis_custom_field_table cft, mantis_custom_field_project_table cfpt WHERE cfpt.project_id = 16 AND cft.id = cfpt.field_id ORDER BY sequence ASC, name ASC
14 0.0230 filter_api.php:1280 filter_get_bug_rows()
SELECT DISTINCT mantis_bug_table.id AS id FROM mantis_project_table, mantis_bug_table WHERE mantis_project_table.enabled = 1 AND mantis_project_table.id = mantis_bug_table.project_id AND ( mantis_bug_table.project_id in (16, 38, 17, 37, 53) ) AND ( mantis_bug_table.handler_id=33 ) AND ( mantis_bug_table.status in (10, 20, 30, 40, 50) )
15 0.0065 filter_api.php:1414 filter_get_bug_rows()
SELECT DISTINCT mantis_bug_table.* FROM mantis_bug_table WHERE mantis_bug_table.id in (2920, 2978, 3358, 3359, 3561, 3635, 3723, 3892, 3923, 4390, 5970, 6600, 6619, 6669, 6737, 7050, 7150, 7235, 7283, 7345, 7664, 7676, 7851, 7873, 7890, 7891, 7981, 8077, 8094, 8105, 8128) ORDER BY last_updated DESC, date_submitted DESC
16 0.0208 filter_api.php:1440 filter_get_bug_rows()
SELECT DISTINCT bug_id,MAX(last_modified) as last_modified, COUNT(last_modified) as count FROM mantis_bugnote_table WHERE mantis_bugnote_table.bug_id in (8128, 8094, 8105, 8077, 3358, 7981, 6619, 7873, 7890, 7891, 7851, 7676, 7664, 7235, 7345, 7150, 7283, 3635, 7050, 2920, 6737, 6669, 6600, 5970, 4390, 2978, 3723, 3561, 3359, 3923, 3892) GROUP BY bug_id
17 0.0020 project_api.php:95 project_cache_all()
SELECT * FROM mantis_project_table
18 0.0062 project_hierarchy_api.php:106 project_hierarchy_cache()
SELECT DISTINCT p.id, ph.parent_id, p.name FROM mantis_project_table p LEFT JOIN mantis_project_hierarchy_table ph ON ph.child_id = p.id WHERE p.enabled = 1 ORDER BY p.name
19 0.0010 user_api.php:553 user_get_id_by_name()
SELECT id FROM mantis_user_table WHERE username='mjones'
20 0.0007 tokens_api.php:258 token_purge_expired()
DELETE FROM mantis_tokens_table WHERE '2009-06-03 08:29:57' > expiry
21 0.0010 tokens_api.php:75 token_get()
SELECT * FROM mantis_tokens_table WHERE type='3' AND owner='29'
22 0.0013 bug_api.php:132 bug_cache_row()
SELECT * FROM mantis_bug_table WHERE id='8110'
23 0.0014 bug_api.php:132 bug_cache_row()
SELECT * FROM mantis_bug_table WHERE id='8112'
24 0.0039 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-16' AND name=''
25 0.0039 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-16' AND name=''
26 0.0012 version_api.php:322 version_get_all_rows_with_subs()
SELECT * FROM mantis_project_version_table WHERE project_id IN (16,38,17,37,53) ORDER BY date_order DESC
27 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='33'
28 0.0073 filter_api.php:3019 filter_db_get_available_queries()
SELECT * FROM mantis_filters_table WHERE (project_id='16' OR project_id='0') AND name!='' ORDER BY is_public DESC, name ASC
29 0.0044 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-16' AND name=''
30 0.0075 filter_api.php:3019 filter_db_get_available_queries()
SELECT * FROM mantis_filters_table WHERE (project_id='16' OR project_id='0') AND name!='' ORDER BY is_public DESC, name ASC
31 0.0012 user_api.php:999 user_update_last_visit()
UPDATE mantis_user_table SET last_visit= '2009-06-03 08:29:58' WHERE id='29'
32 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='29'
0.1194 SQL Queries Total Time
1.1498 Page Request Total Time
(one) of the problem projects... and it takes a looonnnggg time.
Code: Select all
56 total queries executed.
50 unique queries executed.
1 0.0006 database_api.php:76 db_connect()
SET NAMES UTF8
2 0.0011 authentication_api.php:582 auth_is_cookie_valid()
SELECT id FROM mantis_user_table WHERE cookie_string='73a1c16a8e22a55a9b608867dc302810c11662297ae31e33327a3d6af8b60577'
3 0.0008 authentication_api.php:613 auth_get_current_user_id()
SELECT id FROM mantis_user_table WHERE cookie_string='73a1c16a8e22a55a9b608867dc302810c11662297ae31e33327a3d6af8b60577'
4 0.0011 project_api.php:66 project_cache_row()
SELECT * FROM mantis_project_table WHERE id='48'
5 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='29'
6 0.0020 config_api.php:96 config_get()
SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table
7 0.0018 user_pref_api.php:133 user_pref_cache_row()
SELECT * FROM mantis_user_pref_table WHERE user_id='29' AND project_id='0'
8 0.0014 filter_api.php:2860 filter_db_get_filter()
SELECT * FROM mantis_filters_table WHERE id='469'
9 0.0041 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-48' AND name=''
10 0.0014 custom_field_api.php:724 custom_field_get_ids()
SELECT id, name FROM mantis_custom_field_table ORDER BY name ASC
11 0.0064 user_api.php:828 user_get_accessible_subprojects()
SELECT DISTINCT p.id, p.name, ph.parent_id FROM mantis_project_table p LEFT JOIN mantis_project_hierarchy_table ph ON ph.child_id = p.id WHERE p.enabled = 1 AND ph.parent_id IS NOT NULL ORDER BY p.name
12 0.0016 custom_field_api.php:697 custom_field_get_linked_ids()
SELECT cft.id, cft.name, cfpt.sequence FROM mantis_custom_field_table cft, mantis_custom_field_project_table cfpt WHERE cfpt.project_id = 48 AND cft.id = cfpt.field_id ORDER BY sequence ASC, name ASC
13 0.0210 filter_api.php:1280 filter_get_bug_rows()
SELECT DISTINCT mantis_bug_table.id AS id FROM mantis_project_table, mantis_bug_table WHERE mantis_project_table.enabled = 1 AND mantis_project_table.id = mantis_bug_table.project_id AND ( mantis_bug_table.project_id = 48 ) AND ( mantis_bug_table.status in (10, 20, 30, 40, 50, 80) )
14 0.0275 filter_api.php:1414 filter_get_bug_rows()
SELECT DISTINCT mantis_bug_table.* FROM mantis_bug_table WHERE mantis_bug_table.id in (5062, 5071, 5105, 5112, 5175, 5237, 5523, 5563, 5654, 5678, 5717, 5723, 5724, 5729, 5734, 5743, 5768, 5769, 5770, 5775, 5777, 5866, 6009, 6132, 6173, 6321, 6446, 6455, 6471, 6477, 6478, 6485, 6652, 6911, 6912, 6955, 6978, 7061, 7124, 7147, 7262, 7322, 7330, 7332, 7371, 7418, 7441, 7442, 7443, 7444, 7452, 7457, 7465, 7480, 7501, 7527, 7539, 7544, 7561, 7594, 7595, 7596, 7602, 7610, 7613, 7635, 7636, 7638, 7641, 7643, 7684, 7686, 7688, 7696, 7697, 7699, 7700, 7702, 7703, 7706, 7710, 7713, 7715, 7717, 7725, 7726, 7727, 7730, 7731, 7735, 7741, 7744, 7749, 7752, 7755, 7756, 7761, 7762, 7766, 7770, 7776, 7782, 7784, 7792, 7804, 7808, 7812, 7822, 7829, 7830, 7831, 7838, 7840, 7841, 7844, 7845, 7846, 7847, 7848, 7850, 7854, 7856, 7858, 7860, 7862, 7863, 7865, 7869, 7871, 7872, 7879, 7881, 7885, 7886, 7916, 7919, 7920, 7922, 7925, 7927, 7928, 7931, 7932, 7933, 7940, 7945, 7946, 7949, 7950, 7954, 7955, 7957, 7962, 7968, 7971, 7979, 8005, 8012, 8013, 8014, 8020, 8022, 8024, 8030, 8036, 8041, 8042, 8043, 8045, 8046, 8050, 8051, 8053, 8064, 8057, 8058, 8065, 8067, 8071, 8081, 8082, 8090, 8092, 8093, 8102, 8107, 8109) ORDER BY sticky DESC, last_updated DESC, date_submitted DESC
15 0.0066 filter_api.php:1440 filter_get_bug_rows()
SELECT DISTINCT bug_id,MAX(last_modified) as last_modified, COUNT(last_modified) as count FROM mantis_bugnote_table WHERE mantis_bugnote_table.bug_id in (7124, 7596, 7595, 7749, 8041, 7636, 7594, 7841, 8107, 7920, 8090, 7418, 8082, 8109, 8093, 6477, 8092, 5654, 7710, 8102, 7727, 8081, 7561, 7703, 8071, 7696, 8067, 7957, 8030, 7725, 8057, 8065, 7635, 8053, 8058, 7932, 7916, 8064, 7856, 7770, 8051, 7613, 8005, 8050, 7804, 8024, 7860, 7544, 8036, 8045) GROUP BY bug_id
16 0.0018 project_api.php:95 project_cache_all()
SELECT * FROM mantis_project_table
17 0.0065 project_hierarchy_api.php:106 project_hierarchy_cache()
SELECT DISTINCT p.id, ph.parent_id, p.name FROM mantis_project_table p LEFT JOIN mantis_project_hierarchy_table ph ON ph.child_id = p.id WHERE p.enabled = 1 ORDER BY p.name
18 0.0010 user_api.php:553 user_get_id_by_name()
SELECT id FROM mantis_user_table WHERE username='mjones'
19 0.0008 tokens_api.php:258 token_purge_expired()
DELETE FROM mantis_tokens_table WHERE '2009-06-03 08:30:31' > expiry
20 0.0010 tokens_api.php:75 token_get()
SELECT * FROM mantis_tokens_table WHERE type='3' AND owner='29'
21 0.0013 bug_api.php:132 bug_cache_row()
SELECT * FROM mantis_bug_table WHERE id='8110'
22 0.0014 bug_api.php:132 bug_cache_row()
SELECT * FROM mantis_bug_table WHERE id='8105'
23 0.0013 bug_api.php:132 bug_cache_row()
SELECT * FROM mantis_bug_table WHERE id='8112'
24 0.0013 bug_api.php:132 bug_cache_row()
SELECT * FROM mantis_bug_table WHERE id='8094'
25 0.0040 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-48' AND name=''
26 0.0036 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-48' AND name=''
27 0.0014 custom_field_api.php:70 custom_field_cache_row()
SELECT * FROM mantis_custom_field_table WHERE id='30'
28 0.0008 custom_field_api.php:1010 custom_field_distinct_values()
SELECT type, possible_values FROM mantis_custom_field_table WHERE id='30'
29 1.2127 custom_field_api.php:1042 custom_field_distinct_values()
SELECT mantis_custom_field_string_table.value FROM mantis_custom_field_string_table WHERE mantis_custom_field_string_table.field_id='30' GROUP BY mantis_custom_field_string_table.value
30 1.8979 custom_field_api.php:70 custom_field_cache_row()
SELECT * FROM mantis_custom_field_table WHERE id='29'
31 0.0009 custom_field_api.php:1010 custom_field_distinct_values()
SELECT type, possible_values FROM mantis_custom_field_table WHERE id='29'
32 0.0015 custom_field_api.php:70 custom_field_cache_row()
SELECT * FROM mantis_custom_field_table WHERE id='16'
33 0.0008 custom_field_api.php:1010 custom_field_distinct_values()
SELECT type, possible_values FROM mantis_custom_field_table WHERE id='16'
34 1.3610 custom_field_api.php:1042 custom_field_distinct_values()
SELECT mantis_custom_field_string_table.value FROM mantis_custom_field_string_table WHERE mantis_custom_field_string_table.field_id='16' GROUP BY mantis_custom_field_string_table.value
35 1.9120 custom_field_api.php:70 custom_field_cache_row()
SELECT * FROM mantis_custom_field_table WHERE id='17'
36 0.0009 custom_field_api.php:1010 custom_field_distinct_values()
SELECT type, possible_values FROM mantis_custom_field_table WHERE id='17'
37 1.3403 custom_field_api.php:1042 custom_field_distinct_values()
SELECT mantis_custom_field_string_table.value FROM mantis_custom_field_string_table WHERE mantis_custom_field_string_table.field_id='17' GROUP BY mantis_custom_field_string_table.value
38 1.8133 custom_field_api.php:70 custom_field_cache_row()
SELECT * FROM mantis_custom_field_table WHERE id='18'
39 0.0010 custom_field_api.php:1010 custom_field_distinct_values()
SELECT type, possible_values FROM mantis_custom_field_table WHERE id='18'
40 1.3198 custom_field_api.php:1042 custom_field_distinct_values()
SELECT mantis_custom_field_string_table.value FROM mantis_custom_field_string_table WHERE mantis_custom_field_string_table.field_id='18' GROUP BY mantis_custom_field_string_table.value
41 1.9039 custom_field_api.php:70 custom_field_cache_row()
SELECT * FROM mantis_custom_field_table WHERE id='31'
42 0.0009 custom_field_api.php:1010 custom_field_distinct_values()
SELECT type, possible_values FROM mantis_custom_field_table WHERE id='31'
43 1.2599 custom_field_api.php:1042 custom_field_distinct_values()
SELECT mantis_custom_field_string_table.value FROM mantis_custom_field_string_table WHERE mantis_custom_field_string_table.field_id='31' GROUP BY mantis_custom_field_string_table.value
44 2.0156 version_api.php:322 version_get_all_rows_with_subs()
SELECT * FROM mantis_project_version_table WHERE project_id=48 ORDER BY date_order DESC
45 0.0088 filter_api.php:3019 filter_db_get_available_queries()
SELECT * FROM mantis_filters_table WHERE (project_id='48' OR project_id='0') AND name!='' ORDER BY is_public DESC, name ASC
46 0.0040 filter_api.php:2900 filter_db_get_project_current()
SELECT * FROM mantis_filters_table WHERE user_id='29' AND project_id='-48' AND name=''
47 0.0144 filter_api.php:3019 filter_db_get_available_queries()
SELECT * FROM mantis_filters_table WHERE (project_id='48' OR project_id='0') AND name!='' ORDER BY is_public DESC, name ASC
48 0.0016 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='78'
49 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='10'
50 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='36'
51 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='34'
52 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='15'
53 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='38'
54 0.0018 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='47'
55 0.0011 user_api.php:999 user_update_last_visit()
UPDATE mantis_user_table SET last_visit= '2009-06-03 08:30:48' WHERE id='29'
56 0.0013 user_api.php:60 user_cache_row()
SELECT * FROM mantis_user_table WHERE id='29'
16.1868 SQL Queries Total Time
17.4618 Page Request Total Time
Please help...