Все статьи


Вверх
Полная версия сайта
Мобильная версия сайта
Array
(
    [0] => Array
        (
            [REQUEST_2] => 0.045996
        )

    [1] => Array
        (
            [REQUEST_3] => 0.02129
        )

    [2] => Array
        (
            [REQUEST_4] => 0.016653
        )

    [3] => Array
        (
            [REQUEST_5] => 0.01394
        )

    [4] => Array
        (
            [SYSBLOCK_5] => 0.099939
        )

    [5] => Array
        (
            [SYSBLOCK_6] => 0.000162
        )

    [6] => Array
        (
            [SYSBLOCK_7] => 0.00013299999999994
        )

    [7] => Array
        (
            [REQUEST_2] => 0.052011
        )

    [8] => Array
        (
            [REQUEST_3] => 0.019249
        )

    [9] => Array
        (
            [REQUEST_4] => 0.019781
        )

    [10] => Array
        (
            [REQUEST_5] => 0.013506
        )

    [11] => Array
        (
            [SYSBLOCK_5] => 0.106402
        )

    [12] => Array
        (
            [SYSBLOCK_6] => 0.00012100000000004
        )

    [13] => Array
        (
            [SYSBLOCK_7] => 0.00010399999999999
        )

    [14] => Array
        (
            [SYSBLOCK_3] => 0.00012099999999993
        )

    [15] => Array
        (
            [SYSBLOCK_4] => 0.00011699999999992
        )

    [16] => Array
        (
            [REQUEST_22] => 0.0056390000000001
        )

    [17] => Array
        (
            [REQUEST_70] => 0.004833
        )

    [18] => Array
        (
            [REQUEST_40] => 0.061105
        )

    [19] => Array
        (
            [REQUEST_44] => 0.030522
        )

    [20] => Array
        (
            [REQUEST_9] => 0.004529
        )

    [21] => Array
        (
            [REQUEST_9] => 0.002703
        )

    [22] => Array
        (
            [REQUEST_8] => 0.00315
        )

    [23] => Array
        (
            [REQUEST_70] => 0.006818
        )

    [24] => Array
        (
            [REQUEST_40] => 0.072333
        )

    [25] => Array
        (
            [REQUEST_44] => -0.949099
        )

    [26] => Array
        (
            [REQUEST_9] => 0.004074
        )

    [27] => Array
        (
            [REQUEST_9] => 0.002843
        )

    [28] => Array
        (
            [REQUEST_8] => 0.002392
        )

    [29] => Array
        (
            [NAVIGATION_1] => 0.001766
        )

    [30] => Array
        (
            [REQUEST_16] => 0.513806
        )

)
Queries
Array
(
    [0] => 
	SELECT * FROM ave_settings_lang
	WHERE lang_status='1'
	ORDER BY lang_default ASC

    [1] => SELECT * FROM ave_settings
    [2] => 
			SELECT
				doc.*,
				rubric_permission,
				rubric_template,
				rubric_meta_gen,
				template_text
			FROM
				ave_documents AS doc
			JOIN
				ave_rubrics AS rub
					ON rub.Id = doc.rubric_id
			JOIN
				ave_templates AS tpl
					ON tpl.Id = rubric_template_id
			JOIN
				ave_rubric_permissions AS prm
					ON doc.rubric_id = prm.rubric_id
			WHERE
				user_group_id = '2'
			AND
				document_alias = 'articles'
			LIMIT 1
		
    [3] => 
						SELECT compiled
							FROM ave_rubric_template_cache
						WHERE hash  = 'ff9cbb98c8eb7da870de5be1e011356d'
							LIMIT 1
					
    [4] => 
		SELECT *
		FROM ave_request
		WHERE Id = '2'
	
    [5] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '2' AND condition_status = '1'
	
    [6] => SET max_heap_table_size = 1024 * 1024 * 64;
    [7] => SET tmp_table_size = 1024 * 1024 * 32;
    [8] => 		# req=2
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('3'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [9] => SELECT FOUND_ROWS()
    [10] => 
				SELECT *
				FROM ave_module
				WHERE ModuleStatus = '1'
			
    [11] => 
		SELECT *
		FROM ave_request
		WHERE Id = '3'
	
    [12] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '3' AND condition_status = '1'
	
    [13] => SET max_heap_table_size = 1024 * 1024 * 64;
    [14] => SET tmp_table_size = 1024 * 1024 * 32;
    [15] => 		# req=3
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('4'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [16] => SELECT FOUND_ROWS()
    [17] => 
		SELECT *
		FROM ave_request
		WHERE Id = '4'
	
    [18] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '4' AND condition_status = '1'
	
    [19] => SET max_heap_table_size = 1024 * 1024 * 64;
    [20] => SET tmp_table_size = 1024 * 1024 * 32;
    [21] => 		# req=4
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('6'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [22] => SELECT FOUND_ROWS()
    [23] => 
		SELECT *
		FROM ave_request
		WHERE Id = '5'
	
    [24] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '5' AND condition_status = '1'
	
    [25] => SET max_heap_table_size = 1024 * 1024 * 64;
    [26] => SET tmp_table_size = 1024 * 1024 * 32;
    [27] => 		# req=5
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('7'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [28] => SELECT FOUND_ROWS()
    [29] => 
		SELECT *
		FROM ave_request
		WHERE Id = '2'
	
    [30] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '2' AND condition_status = '1'
	
    [31] => SET max_heap_table_size = 1024 * 1024 * 64;
    [32] => SET tmp_table_size = 1024 * 1024 * 32;
    [33] => 		# req=2
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('3'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [34] => SELECT FOUND_ROWS()
    [35] => 
		SELECT *
		FROM ave_request
		WHERE Id = '3'
	
    [36] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '3' AND condition_status = '1'
	
    [37] => SET max_heap_table_size = 1024 * 1024 * 64;
    [38] => SET tmp_table_size = 1024 * 1024 * 32;
    [39] => 		# req=3
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('4'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [40] => SELECT FOUND_ROWS()
    [41] => 
		SELECT *
		FROM ave_request
		WHERE Id = '4'
	
    [42] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '4' AND condition_status = '1'
	
    [43] => SET max_heap_table_size = 1024 * 1024 * 64;
    [44] => SET tmp_table_size = 1024 * 1024 * 32;
    [45] => 		# req=4
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('6'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [46] => SELECT FOUND_ROWS()
    [47] => 
		SELECT *
		FROM ave_request
		WHERE Id = '5'
	
    [48] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '5' AND condition_status = '1'
	
    [49] => SET max_heap_table_size = 1024 * 1024 * 64;
    [50] => SET tmp_table_size = 1024 * 1024 * 32;
    [51] => 		# req=5
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t8,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t8.document_id = a.id AND (t8.rubric_field_id = '8' AND UPPER(t8.field_value) = UPPER('7'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,5
	
    [52] => SELECT FOUND_ROWS()
    [53] => 
		SELECT *
		FROM ave_request
		WHERE Id = '22'
	
    [54] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '22' AND condition_status = '1'
	
    [55] => SET max_heap_table_size = 1024 * 1024 * 64;
    [56] => SET tmp_table_size = 1024 * 1024 * 32;
    [57] => 		# req=22
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t95,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '10' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t95.document_id = a.id AND (t95.rubric_field_id = '95' AND UPPER(t95.field_value) = UPPER('1'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_title ASC
		
	
    [58] => SELECT FOUND_ROWS()
    [59] => 
		SELECT *
		FROM ave_request
		WHERE Id = '70'
	
    [60] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '70' AND condition_status = '1'
	
    [61] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '70' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [62] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '70'
		
    [63] => SET max_heap_table_size = 1024 * 1024 * 64;
    [64] => SET tmp_table_size = 1024 * 1024 * 32;
    [65] => 		# req=70
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,15
	
    [66] => SELECT FOUND_ROWS()
    [67] => 
		SELECT *
		FROM ave_request
		WHERE Id = '40'
	
    [68] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '40' AND condition_status = '1'
	
    [69] => SET max_heap_table_size = 1024 * 1024 * 64;
    [70] => SET tmp_table_size = 1024 * 1024 * 32;
    [71] => 		# req=40
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t43, ave_document_fields AS t55,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '11' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t43.document_id = a.id AND (t43.rubric_field_id = '43' AND UPPER(t43.field_value) != UPPER('0'))) AND (t55.document_id = a.id AND (t55.rubric_field_id = '55' AND UPPER(t55.field_value) = UPPER('1'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_changed DESC
		LIMIT 0,4
	
    [72] => SELECT FOUND_ROWS()
    [73] => 
		SELECT *
		FROM ave_request
		WHERE Id = '44'
	
    [74] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '44' AND condition_status = '1'
	
    [75] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '44' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [76] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '44'
		
    [77] => SET max_heap_table_size = 1024 * 1024 * 64;
    [78] => SET tmp_table_size = 1024 * 1024 * 32;
    [79] => 		# req=44
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '14' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_title ASC
		
	
    [80] => SELECT FOUND_ROWS()
    [81] => 
		SELECT *
		FROM ave_request
		WHERE Id = '9'
	
    [82] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
	
    [83] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [84] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '9'
		
    [85] => SET max_heap_table_size = 1024 * 1024 * 64;
    [86] => SET tmp_table_size = 1024 * 1024 * 32;
    [87] => 		# req=9
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '5' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,1
	
    [88] => SELECT FOUND_ROWS()
    [89] => SELECT rubric_field_alias FROM ave_rubric_fields WHERE Id=18
    [90] => 
		SELECT *
		FROM ave_request
		WHERE Id = '9'
	
    [91] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
	
    [92] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [93] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '9'
		
    [94] => SET max_heap_table_size = 1024 * 1024 * 64;
    [95] => SET tmp_table_size = 1024 * 1024 * 32;
    [96] => 		# req=9
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '5' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,1
	
    [97] => SELECT FOUND_ROWS()
    [98] => 
		SELECT *
		FROM ave_request
		WHERE Id = '8'
	
    [99] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '8' AND condition_status = '1'
	
    [100] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '8' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [101] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '8'
		
    [102] => SET max_heap_table_size = 1024 * 1024 * 64;
    [103] => SET tmp_table_size = 1024 * 1024 * 32;
    [104] => 		# req=8
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '5' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,1
	
    [105] => SELECT FOUND_ROWS()
    [106] => SELECT rubric_field_alias FROM ave_rubric_fields WHERE Id=17
    [107] => 
		SELECT *
		FROM ave_request
		WHERE Id = '70'
	
    [108] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '70' AND condition_status = '1'
	
    [109] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '70' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [110] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '70'
		
    [111] => SET max_heap_table_size = 1024 * 1024 * 64;
    [112] => SET tmp_table_size = 1024 * 1024 * 32;
    [113] => 		# req=70
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '3' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,15
	
    [114] => SELECT FOUND_ROWS()
    [115] => 
		SELECT *
		FROM ave_request
		WHERE Id = '40'
	
    [116] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '40' AND condition_status = '1'
	
    [117] => SET max_heap_table_size = 1024 * 1024 * 64;
    [118] => SET tmp_table_size = 1024 * 1024 * 32;
    [119] => 		# req=40
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			ave_document_fields AS t43, ave_document_fields AS t55,			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '11' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t43.document_id = a.id AND (t43.rubric_field_id = '43' AND UPPER(t43.field_value) != UPPER('0'))) AND (t55.document_id = a.id AND (t55.rubric_field_id = '55' AND UPPER(t55.field_value) = UPPER('1'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_changed DESC
		LIMIT 0,4
	
    [120] => SELECT FOUND_ROWS()
    [121] => 
		SELECT *
		FROM ave_request
		WHERE Id = '44'
	
    [122] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '44' AND condition_status = '1'
	
    [123] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '44' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [124] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '44'
		
    [125] => SET max_heap_table_size = 1024 * 1024 * 64;
    [126] => SET tmp_table_size = 1024 * 1024 * 32;
    [127] => 		# req=44
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '14' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_title ASC
		
	
    [128] => SELECT FOUND_ROWS()
    [129] => 
		SELECT *
		FROM ave_request
		WHERE Id = '9'
	
    [130] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
	
    [131] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [132] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '9'
		
    [133] => SET max_heap_table_size = 1024 * 1024 * 64;
    [134] => SET tmp_table_size = 1024 * 1024 * 32;
    [135] => 		# req=9
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '5' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,1
	
    [136] => SELECT FOUND_ROWS()
    [137] => 
		SELECT *
		FROM ave_request
		WHERE Id = '9'
	
    [138] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
	
    [139] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '9' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [140] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '9'
		
    [141] => SET max_heap_table_size = 1024 * 1024 * 64;
    [142] => SET tmp_table_size = 1024 * 1024 * 32;
    [143] => 		# req=9
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '5' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,1
	
    [144] => SELECT FOUND_ROWS()
    [145] => 
		SELECT *
		FROM ave_request
		WHERE Id = '8'
	
    [146] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '8' AND condition_status = '1'
	
    [147] => 
		SELECT *
		FROM ave_request_conditions
		WHERE request_id = '8' AND condition_status = '1'
		ORDER BY condition_position ASC
	
    [148] => 
			UPDATE ave_request
			SET	request_where_cond = ''
			WHERE Id = '8'
		
    [149] => SET max_heap_table_size = 1024 * 1024 * 64;
    [150] => SET tmp_table_size = 1024 * 1024 * 32;
    [151] => 		# req=8
		SELECT STRAIGHT_JOIN
			a.*
			
			
		FROM
			
			ave_documents AS a
			
			
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '5' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.Id != '1555') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP()))
			
		#GROUP BY a.Id
		ORDER BY a.document_published DESC
		LIMIT 0,1
	
    [152] => SELECT FOUND_ROWS()
    [153] => SELECT * FROM ave_navigation
    [154] => 
		SELECT CONCAT_WS(
				';',
				CONCAT_WS(',', nav.Id, nav.parent_id, nav2.parent_id),
				CONCAT_WS(',', nav.navi_item_level),
				nav.Id
			)
		FROM
			ave_navigation_items AS nav
		JOIN
			ave_documents AS doc
		LEFT JOIN
			ave_navigation_items AS nav2 ON nav2.Id = nav.parent_id
		WHERE nav.navi_item_status = 1
			AND nav.navi_id = 1
			AND doc.Id = 1555
			AND (
				nav.navi_item_link = 'index.php?id=1555'
			OR nav.document_alias = 'articles'
			OR nav.document_alias = '/articles'
			OR nav.document_alias = 'articles.html'
			OR nav.document_alias = '/articles.html'
		
				OR nav.Id = doc.document_linked_navi_id
			)
	
    [155] => 
		SELECT *
		FROM ave_navigation_items
		WHERE navi_item_status = '1'
		AND navi_id = '1'
		ORDER BY navi_item_position ASC
	
    [156] => 
		SELECT *
		FROM ave_request
		WHERE Id = '16'
	
    [157] => 
		SELECT DISTINCT(condition_field_id) AS fid
		FROM ave_request_conditions
		WHERE request_id = '16' AND condition_status = '1'
	
    [158] => SET max_heap_table_size = 1024 * 1024 * 64;
    [159] => SET tmp_table_size = 1024 * 1024 * 32;
    [160] => 		# req=16
		SELECT STRAIGHT_JOIN
			a.*
			, COUNT(df.Id) AS count 
			
		FROM
			ave_document_fields AS t33,			ave_documents AS a
			
			 LEFT JOIN ave_document_fields AS df ON (df.rubric_field_id = '31' AND df.field_value = a.Id)
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '8' AND
		a.document_deleted != '1') AND (a.document_status = '1') AND (a.document_published <= UNIX_TIMESTAMP() AND (a.document_expire = 0 OR a.document_expire >=UNIX_TIMESTAMP())) AND ((t33.document_id = a.id AND (t33.rubric_field_id = '33' AND UPPER(t33.field_value) != UPPER('Автор неизвестен'))) AND 1=1)
			
		#GROUP BY a.Id
		ORDER BY a.document_title ASC
		
	
    [161] => SELECT FOUND_ROWS()
)

Время генерации: 1,099 сек.
Пиковое значение 3 853Kb
Количество запросов: 100 шт. за 0,654951 сек.
161   0,511698
# req=16
		SELECT STRAIGHT_JOIN
			a.*
			, COUNT(df.Id) AS count 
			
		FROM
			ave_document_fields AS t33,			ave_documents AS a
			
			 LEFT JOIN ave_document_fields AS df ON (df.rubric_field_id = '31' AND df.field_value = a.Id)
		WHERE
			(
		a.Id != '1' AND a.Id != '2' AND
		a.rubric_id = '8' AN
 0,000151 starting
 0,000007 checking permissions
 0,000003 checking permissions
 0,000004 checking permissions
 0,000030 Opening tables
 0,000016 System lock
 0,000102 init
 0,000043 optimizing
 0,000428 statistics
 0,000048 preparing
 0,000371 Creating tmp table
 0,000005 executing
 0,509717 Copying to tmp table
 0,000348 Sending data
 0,000007 end
 0,000304 removing tmp table
 0,000008 end
 0,000003 query end
 0,000028 closing tables
 0,000071 freeing items
 0,000004 logging slow query
 0,000005 cleaning up