mantis slow

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
angelibot

mantis slow

Post by angelibot »

for a few months, mantis is very slow to report incidents or consult the database weighs 3 GB because it has many attachments, this is the cause of the slowness? that I can do to improve performance?
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantis slow

Post by atrol »

angelibot wrote:this is the cause of the slowness?
Maybe, maybe not

You can trace database access by adding the following lines to file config_inc.php

Code: Select all

	$g_show_queries_count	= ON;
	$g_show_queries_list	= ON;
Please use Search before posting and read the Manual
angelibot

Re: mantis slow

Post by angelibot »

turn it into a test environment, apparently no delays, but there are queries that appear in red, for example:

SELECT * FROM WHERE mantis_filters_table (OR project_id project_id = 13 = 0) AND name! ='' ORDER BY is_public DESC, name ASC

and there are shorter sentence.


also note, when I consult an incident, it took a long time, sometimes does not open fully, I have to lower and raise the services, and I can see the trail so we have activated

in theory no more errors. Do not know if maybe updating the version to get something extra
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantis slow

Post by atrol »

Can you show the output at the end of the trace, e.g.

Code: Select all

	0.5253	SQL Queries Total Time
	1.9151	Page Request Total Time
Search for the statements with largest number in column 2
e.g.
23 0.0721 tag_api.php:567 tag_bug_get_attached()
SELECT t.*, b.user_id as user_attached, b.date_attached FROM mantis_tag_table as t LEFT JOIN mantis_bug_tag_table as b on t.id=b.tag_id WHERE b.bug_id=15593
Please use Search before posting and read the Manual
Post Reply