Spacewalk 2.1 Cfg Deploy 400 Systems
Normalized reports are marked with a "(N)".
- Generated on 2014-04-15 10:02
- Parsed /home/stephand/i/dass/work/redhat/spacewalk/cfg_depl_ISE/spacewalk21_cfg_depl_ISE_400sys_pgsql.log (25,563 lines) in 2,000s
- Log from 2014-04-15 09:30:38 to 2014-04-15 09:39:03
- Executed on t420.fw.b4.mad
Overall statistics ^
- Number of unique normalized queries: 124
- Number of queries: 3,837
- Total query duration: 10,210.6s
- First query: 2014-04-15 09:30:38
- Last query: 2014-04-15 09:39:03
- Query peak: 175 queries/s at 2014-04-15 09:38:00
Queries by type ^
| Type | Count | Percentage |
|---|---|---|
| SELECT | 2,011 | 52.4 |
| INSERT | 551 | 14.4 |
| UPDATE | 187 | 4.9 |
| DELETE | 117 | 3.0 |
Queries that took up the most time (N) ^
| Rank | Total duration | Times executed | Av. duration (ms) | Query | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 7,965.9s | 9
|
885.10 | update PXTSessions set value='', web_user_id=0, expires=0 where id=0; |
||||||||
| 2 | 1,131.6s | 2
|
565.82 | SELECT DISTINCT UAO.id AS ID,#0 UAO.earliest_action AS EARLIEST,#0 A.prerequisite AS PREREQUISITE,#0 UAO.type_name,#0 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#0 UAO.scheduler,#0 WC.login AS SCHEDULER_NAME,#0 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (...)) AS "IN_PROGRESS_SYSTEMS",#0 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 0) AS "COMPLETED_SYSTEMS",#0 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 0) AS "FAILED_SYSTEMS"#0 FROM rhnUserActionOverview UAO left join#0 web_contact WC on UAO.scheduler = WC.id,#0 rhnAction A#0 WHERE UAO.org_id = 0#0 AND UAO.user_id = 0#0 AND UAO.action_status_id IN (...)#0 AND UAO.archived = 0#0 AND UAO.id = A.id#0ORDER BY EARLIEST DESC; |
||||||||
| 3 | 243.0s | 1
|
243.04 | SELECT DISTINCT UAO.id AS ID,#011 UAO.earliest_action AS EARLIEST,#011 A.prerequisite AS PREREQUISITE,#011 UAO.type_name,#011 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#011 UAO.scheduler,#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (0,1)) AS "IN_PROGRESS_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 2) AS "COMPLETED_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 3) AS "FAILED_SYSTEMS"#011 FROM rhnUserActionOverview UAO, rhnAction A, rhnSet ST#011 WHERE UAO.org_id = 1#011 AND UAO.user_id = 3#011 AND UAO.action_status_id IN (0,1)#011 AND UAO.archived = 0#011 AND UAO.id = A.id#011 AND ST.user_id = 3#011 AND ST.label = 'pending_action_list'#011 AND ST.element = A.id#011ORDER BY EARLIEST DESC; |
||||||||
| 4 | 107.7s | 63
|
1.71 | #0 select a.id, sa.server_id, pc.jabber_id,#0 date_diff_in_days(current_timestamp, earliest_action) * 0 delta#0 from#0 rhnServerAction sa,#0 rhnAction a,#0 rhnPushClient pc#0 where pc.server_id = sa.server_id#0 and sa.action_id = a.id#0 and sa.status in (...) -- Queued or picked up#0 and not exists (#0 -- This is like saying 'this action has no#0 -- prerequisite or has a prerequisite that has completed#0 -- (status = 0)#0 select 0#0 from rhnServerAction sap#0 where sap.server_id = sa.server_id#0 and sap.action_id = a.prerequisite#0 and sap.status != 0#0 )#0 order by earliest_action#0; |
||||||||
| 5 | 102.5s | 429
|
0.24 | COMMIT; |
||||||||
| 6 | 65ms | 3
|
21.68 | SELECT ACR.server_id AS ID, count(*) AS config_files_with_differences#0 FROM#0 (SELECT rSA.server_id, MAX(rA.id)#0 FROM rhnAction rA#0 JOIN rhnServerAction rSA#0 ON rSA.action_id = rA.id#0 JOIN rhnActionStatus rAS#0 ON rAS.id = rSA.status#0 JOIN rhnActionType rAT#0 ON rAT.id = rA.action_type#0 WHERE RSA.server_id in (...)#0 AND rAS.name in (...)#0 AND rAT.label = ''#0 GROUP BY rSA.server_id#0 ) X#0 JOIN rhnActionConfigRevision ACR#0 ON X.server_id = ACR.server_id#0 JOIN rhnActionConfigRevisionResult ACRR#0 ON ACR.id = ACRR.action_config_revision_id#0 WHERE ACR.failure_id is null#0 AND ACRR.result is not null#0GROUP BY ACR.server_id; |
||||||||
| 7 | 65ms | 36
|
1.80 | select * from logging.clear_log_id() as result; |
||||||||
| 8 | 64ms | 275
|
0.23 | select * from rhn_config_channel.get_user_revision_access('',0, 0) as result; |
||||||||
| 9 | 48ms | 1
|
48.10 | SELECT S.id, S.NAME,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable#011 FROM rhnServerInfo SI,#011 rhnServer S#011 WHERE S.org_id = 1#011 AND EXISTS (SELECT 1 FROM rhnUserServerPerms USP WHERE USP.user_id = 3 AND USP.server_id = S.id)#011 AND SI.server_id = S.id#011 AND SI.checkin < current_timestamp - numtodsinterval(1 * 86400, 'second')#011ORDER BY SI.checkin DESC; |
||||||||
| 10 | 47ms | 1
|
46.71 | SELECT S.ID, S.NAME#011#011#011 FROM rhnServer S,#011#011#011 rhnServerConfigChannel SCC,#011 #011 rhnUserServerPerms USP#011#011#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011#011#011 AND SCC.config_channel_id = 1#011#011#011 AND S.id = SCC.server_id#011 #011#011 AND USP.server_id = S.id#011#011#011 AND USP.user_id = 3#011#011#011 ORDER BY S.NAME; |
||||||||
| 11 | 45ms | 358
|
0.13 | insert into rhnActionConfigRevision (action_id, failure_id, created, modified, server_id, config_revision_id, id) values (0, NULL, '', '', 0, 0, 0); |
||||||||
| 12 | 41ms | 1
|
41.23 | SELECT S.ID, S.NAME#011#011#011 FROM rhnServer S,#011#011#011#011 rhnSet ST,#011#011#011 rhnServerConfigChannel SCC,#011 #011 rhnUserServerPerms USP#011#011#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011#011#011 AND SCC.config_channel_id = 1#011#011#011 AND S.id = SCC.server_id#011#011#011 AND ST.user_id = 3#011 #011#011 AND ST.label = 'config_channel_deploy_systems'#011#011#011 AND ST.element = S.id#011 #011#011 AND USP.server_id = S.id#011#011#011 AND USP.user_id = 3#011#011 ORDER BY S.NAME; |
||||||||
| 13 | 28ms | 2
|
13.84 | SELECT id from rhnDevice; |
||||||||
| 14 | 20ms | 35
|
0.57 | insert into rhnTaskoRun (org_id, template_id, schedule_id, start_time, end_time, std_output_path, std_error_path, status, id) values (NULL, 0, 0, NULL, NULL, NULL, NULL, '', 0); |
||||||||
| 15 | 20ms | 1
|
19.81 | SELECT S.id, S.NAME, S.info, S.created,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable,#011#011#011(select C.name#011#011#011#011from rhnChannel C#011#011#011#011inner join rhnServerChannel SC on SC.channel_id = C.id#011 #011#011#011where SC.server_id = S.id#011#011#011#011and C.parent_channel IS NULL) AS CHANNEL_LABELS,#011 (SELECT wc.login#011 FROM web_contact wc#011 WHERE wc.id = s.creator_id) as creator_name#011 FROM rhnServer S#011 WHERE S.org_id = 1#011 AND EXISTS (SELECT 1 FROM rhnUserServerPerms USP WHERE USP.user_id = 3 AND USP.server_id = S.id)#011 AND S.created > current_timestamp - numtodsinterval(30 * 86400, 'second')#011ORDER BY S.created DESC; |
||||||||
| 16 | 15ms | 2
|
7.60 | SELECT UAO.id,#0 UAO.action_status,#0 UAO.tally#0 FROM rhnUserActionOverview UAO#0 WHERE UAO.org_id = 0#0 AND UAO.user_id = 0#0 AND UAO.id IN (...); |
||||||||
| 17 | 15ms | 63
|
0.24 | #0 update rhnPushClient#0 set state_id = 0#0 where state_id = 0#0 and last_ping_time is not null#0 and current_timestamp > next_action_time#0; |
||||||||
| 18 | 14ms | 2
|
7.10 | SELECT E.id, E.update_date, E.synopsis as advisory_synopsis#0 FROM rhnErrata E,#0 (SELECT SNEC.errata_id, COUNT(SNEC.server_id) C#0 FROM rhnServerNeededPackageCache SNEC#0 WHERE SNEC.server_id IN (SELECT server_id FROM rhnUserServerPerms USP WHERE USP.user_id = 0)#0 AND errata_id IS NOT NULL#0 GROUP BY SNEC.errata_id) X#0 WHERE E.id = X.errata_id#0 AND E.advisory_type = ''#0ORDER BY E.update_date DESC, E.id; |
||||||||
| 19 | 9ms | 1
|
9.23 | SELECT#011 s.id as id,#011 s.name as name,#011 s.description as description,#011 s.info as info,#011 s.created as registered,#011 s.running_kernel as runningKernel,#011 sl.machine as machine,#011 sl.rack as rack,#011 sl.room as room,#011 sl.building as building,#011 sl.address1 as address1,#011 sl.address2 as address2,#011 sl.city as city,#011 sl.state as state,#011 sl.country as country,#011 rsn.hostname as hostname,#011 rsn.ipaddr as ipaddr,#011 rsn.ip6addr as ip6addr,#011 dmi.vendor as dmiVendor,#011 dmi.system as dmiSystem,#011 dmi.product as dmiProduct,#011 dmi.bios_vendor as dmiBiosVendor,#011 dmi.bios_version as dmiBiosVersion,#011 dmi.bios_release as dmiBiosRelease,#011 dmi.asset as dmiAsset,#011 dmi.board as dmiBoard,#011 cpu.bogomips as cpuBogoMIPS,#011 cpu.cache as cpuCache,#011 cpu.family as cpuFamily,#011 cpu.mhz as cpuMHz,#011 cpu.stepping as cpuStepping,#011 cpu.flags as cpuFlags,#011 cpu.model as cpuModel,#011 cpu.version as cpuVersion,#011 cpu.vendor as cpuVendor,#011 cpu.nrcpu as cpuNumberOfCpus,#011 cpu.acpiversion as cpuAcpiVersion,#011 cpu.apic as cpuApic,#011 cpu.apmversion as cpuApmVersion,#011 cpu.chipset as cpuChipset,#011 si.checkin as checkin,#011 rr.ram as ram,#011 rr.swap as swap,#011 vi.uuid as uuid#011 FROM rhnServer s#011 LEFT OUTER JOIN rhnServerNetwork rsn ON s.id = rsn.server_id#011 LEFT OUTER JOIN rhnServerInfo si on s.id = si.server_id#011 LEFT OUTER JOIN rhnRam rr on s.id = rr.server_id#011 LEFT OUTER JOIN rhnServerLocation sl ON s.id = sl.server_id#011 LEFT OUTER JOIN rhnServerDmi dmi ON s.id = dmi.server_id#011 LEFT OUTER JOIN rhnCPU cpu on s.id = cpu.server_id; |
||||||||
| 20 | 9ms | 9
|
0.94 | select * from rhn_synch_probe_state() as result; |
Slowest queries ^
| Rank | Duration (ms) | Query |
|---|---|---|
| 1 | 7,964.92 | update PXTSessions set value=' ', web_user_id=3, expires=1397551059 where id=36304; |
| 2 | 1,042.14 | SELECT DISTINCT UAO.id AS ID,#011 UAO.earliest_action AS EARLIEST,#011 A.prerequisite AS PREREQUISITE,#011 UAO.type_name,#011 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#011 UAO.scheduler,#011 WC.login AS SCHEDULER_NAME,#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (0,1)) AS "IN_PROGRESS_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 2) AS "COMPLETED_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 3) AS "FAILED_SYSTEMS"#011 FROM rhnUserActionOverview UAO left join#011 web_contact WC on UAO.scheduler = WC.id,#011 rhnAction A#011 WHERE UAO.org_id = 1#011 AND UAO.user_id = 3#011 AND UAO.action_status_id IN (0,1)#011 AND UAO.archived = 0#011 AND UAO.id = A.id#011ORDER BY EARLIEST DESC; |
| 3 | 243.04 | SELECT DISTINCT UAO.id AS ID,#011 UAO.earliest_action AS EARLIEST,#011 A.prerequisite AS PREREQUISITE,#011 UAO.type_name,#011 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#011 UAO.scheduler,#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (0,1)) AS "IN_PROGRESS_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 2) AS "COMPLETED_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 3) AS "FAILED_SYSTEMS"#011 FROM rhnUserActionOverview UAO, rhnAction A, rhnSet ST#011 WHERE UAO.org_id = 1#011 AND UAO.user_id = 3#011 AND UAO.action_status_id IN (0,1)#011 AND UAO.archived = 0#011 AND UAO.id = A.id#011 AND ST.user_id = 3#011 AND ST.label = 'pending_action_list'#011 AND ST.element = A.id#011ORDER BY EARLIEST DESC; |
| 4 | 89.50 | SELECT DISTINCT UAO.id AS ID,#011 UAO.earliest_action AS EARLIEST,#011 A.prerequisite AS PREREQUISITE,#011 UAO.type_name,#011 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#011 UAO.scheduler,#011 WC.login AS SCHEDULER_NAME,#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (0,1)) AS "IN_PROGRESS_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 2) AS "COMPLETED_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 3) AS "FAILED_SYSTEMS"#011 FROM rhnUserActionOverview UAO left join#011 web_contact WC on UAO.scheduler = WC.id,#011 rhnAction A#011 WHERE UAO.org_id = 1#011 AND UAO.user_id = 3#011 AND UAO.action_status_id IN (0,1)#011 AND UAO.archived = 0#011 AND UAO.id = A.id#011ORDER BY EARLIEST DESC; |
| 5 | 48.10 | SELECT S.id, S.NAME,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable#011 FROM rhnServerInfo SI,#011 rhnServer S#011 WHERE S.org_id = 1#011 AND EXISTS (SELECT 1 FROM rhnUserServerPerms USP WHERE USP.user_id = 3 AND USP.server_id = S.id)#011 AND SI.server_id = S.id#011 AND SI.checkin < current_timestamp - numtodsinterval(1 * 86400, 'second')#011ORDER BY SI.checkin DESC; |
| 6 | 46.71 | SELECT S.ID, S.NAME#011#011#011 FROM rhnServer S,#011#011#011 rhnServerConfigChannel SCC,#011 #011 rhnUserServerPerms USP#011#011#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011#011#011 AND SCC.config_channel_id = 1#011#011#011 AND S.id = SCC.server_id#011 #011#011 AND USP.server_id = S.id#011#011#011 AND USP.user_id = 3#011#011#011 ORDER BY S.NAME; |
| 7 | 41.23 | SELECT S.ID, S.NAME#011#011#011 FROM rhnServer S,#011#011#011#011 rhnSet ST,#011#011#011 rhnServerConfigChannel SCC,#011 #011 rhnUserServerPerms USP#011#011#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011#011#011 AND SCC.config_channel_id = 1#011#011#011 AND S.id = SCC.server_id#011#011#011 AND ST.user_id = 3#011 #011#011 AND ST.label = 'config_channel_deploy_systems'#011#011#011 AND ST.element = S.id#011 #011#011 AND USP.server_id = S.id#011#011#011 AND USP.user_id = 3#011#011 ORDER BY S.NAME; |
| 8 | 34.99 | SELECT ACR.server_id AS ID, count(*) AS config_files_with_differences#011 FROM#011 (SELECT rSA.server_id, MAX(rA.id)#011 FROM rhnAction rA#011 JOIN rhnServerAction rSA#011 ON rSA.action_id = rA.id#011 JOIN rhnActionStatus rAS#011 ON rAS.id = rSA.status#011 JOIN rhnActionType rAT#011 ON rAT.id = rA.action_type#011 WHERE RSA.server_id in (1000010433, 1000010432, 1000010431, 1000010430, 1000010429)#011 AND rAS.name in ('Completed', 'Failed')#011 AND rAT.label = 'configfiles.diff'#011 GROUP BY rSA.server_id#011 ) X#011 JOIN rhnActionConfigRevision ACR#011 ON X.server_id = ACR.server_id#011 JOIN rhnActionConfigRevisionResult ACRR#011 ON ACR.id = ACRR.action_config_revision_id#011 WHERE ACR.failure_id is null#011 AND ACRR.result is not null#011GROUP BY ACR.server_id; |
| 9 | 29.44 | SELECT ACR.server_id AS ID, count(*) AS config_files_with_differences#011 FROM#011 (SELECT rSA.server_id, MAX(rA.id)#011 FROM rhnAction rA#011 JOIN rhnServerAction rSA#011 ON rSA.action_id = rA.id#011 JOIN rhnActionStatus rAS#011 ON rAS.id = rSA.status#011 JOIN rhnActionType rAT#011 ON rAT.id = rA.action_type#011 WHERE RSA.server_id in (1000010433, 1000010432, 1000010431, 1000010430, 1000010429)#011 AND rAS.name in ('Completed', 'Failed')#011 AND rAT.label = 'configfiles.diff'#011 GROUP BY rSA.server_id#011 ) X#011 JOIN rhnActionConfigRevision ACR#011 ON X.server_id = ACR.server_id#011 JOIN rhnActionConfigRevisionResult ACRR#011 ON ACR.id = ACRR.action_config_revision_id#011 WHERE ACR.failure_id is null#011 AND ACRR.result is not null#011GROUP BY ACR.server_id; |
| 10 | 20.26 | SELECT id from rhnDevice; |
| 11 | 19.81 | SELECT S.id, S.NAME, S.info, S.created,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable,#011#011#011(select C.name#011#011#011#011from rhnChannel C#011#011#011#011inner join rhnServerChannel SC on SC.channel_id = C.id#011 #011#011#011where SC.server_id = S.id#011#011#011#011and C.parent_channel IS NULL) AS CHANNEL_LABELS,#011 (SELECT wc.login#011 FROM web_contact wc#011 WHERE wc.id = s.creator_id) as creator_name#011 FROM rhnServer S#011 WHERE S.org_id = 1#011 AND EXISTS (SELECT 1 FROM rhnUserServerPerms USP WHERE USP.user_id = 3 AND USP.server_id = S.id)#011 AND S.created > current_timestamp - numtodsinterval(30 * 86400, 'second')#011ORDER BY S.created DESC; |
| 12 | 13.30 | select * from logging.clear_log_id() as result; |
| 13 | 11.90 | select * from logging.clear_log_id() as result; |
| 14 | 11.87 | insert into rhnTaskoRun (org_id, template_id, schedule_id, start_time, end_time, std_output_path, std_error_path, status, id) values (NULL, 15, 4, NULL, NULL, NULL, NULL, 'READY', 938123); |
| 15 | 10.31 | SELECT E.id, E.update_date, E.synopsis as advisory_synopsis#011 FROM rhnErrata E,#011 (SELECT SNEC.errata_id, COUNT(SNEC.server_id) C#011 FROM rhnServerNeededPackageCache SNEC#011 WHERE SNEC.server_id IN (SELECT server_id FROM rhnUserServerPerms USP WHERE USP.user_id = 3)#011 AND errata_id IS NOT NULL#011 GROUP BY SNEC.errata_id) X#011 WHERE E.id = X.errata_id#011 AND E.advisory_type = 'Security Advisory'#011ORDER BY E.update_date DESC, E.id; |
| 16 | 9.23 | SELECT#011 s.id as id,#011 s.name as name,#011 s.description as description,#011 s.info as info,#011 s.created as registered,#011 s.running_kernel as runningKernel,#011 sl.machine as machine,#011 sl.rack as rack,#011 sl.room as room,#011 sl.building as building,#011 sl.address1 as address1,#011 sl.address2 as address2,#011 sl.city as city,#011 sl.state as state,#011 sl.country as country,#011 rsn.hostname as hostname,#011 rsn.ipaddr as ipaddr,#011 rsn.ip6addr as ip6addr,#011 dmi.vendor as dmiVendor,#011 dmi.system as dmiSystem,#011 dmi.product as dmiProduct,#011 dmi.bios_vendor as dmiBiosVendor,#011 dmi.bios_version as dmiBiosVersion,#011 dmi.bios_release as dmiBiosRelease,#011 dmi.asset as dmiAsset,#011 dmi.board as dmiBoard,#011 cpu.bogomips as cpuBogoMIPS,#011 cpu.cache as cpuCache,#011 cpu.family as cpuFamily,#011 cpu.mhz as cpuMHz,#011 cpu.stepping as cpuStepping,#011 cpu.flags as cpuFlags,#011 cpu.model as cpuModel,#011 cpu.version as cpuVersion,#011 cpu.vendor as cpuVendor,#011 cpu.nrcpu as cpuNumberOfCpus,#011 cpu.acpiversion as cpuAcpiVersion,#011 cpu.apic as cpuApic,#011 cpu.apmversion as cpuApmVersion,#011 cpu.chipset as cpuChipset,#011 si.checkin as checkin,#011 rr.ram as ram,#011 rr.swap as swap,#011 vi.uuid as uuid#011 FROM rhnServer s#011 LEFT OUTER JOIN rhnServerNetwork rsn ON s.id = rsn.server_id#011 LEFT OUTER JOIN rhnServerInfo si on s.id = si.server_id#011 LEFT OUTER JOIN rhnRam rr on s.id = rr.server_id#011 LEFT OUTER JOIN rhnServerLocation sl ON s.id = sl.server_id#011 LEFT OUTER JOIN rhnServerDmi dmi ON s.id = dmi.server_id#011 LEFT OUTER JOIN rhnCPU cpu on s.id = cpu.server_id; |
| 17 | 8.64 | select * from logging.clear_log_id() as result; |
| 18 | 8.57 | select * from logging.clear_log_id() as result; |
| 19 | 8.39 | select * from logging.clear_log_id() as result; |
| 20 | 8.20 | SELECT DISTINCT S.id,#011 S.name,#011 SI.server_id AS IS_RHN_SATELLITE,#011 PI.server_id AS IS_RHN_PROXY,#011 TO_CHAR(Sinfo.checkin, 'YYYY-MM-DD HH24:MI:SS') AS LAST_CHECKIN,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable#011 FROM rhnServerInfo SInfo, rhnUserServerPerms USP, rhnServer S#011 LEFT OUTER JOIN rhnSatelliteInfo SI ON S.id = SI.server_id#011 LEFT OUTER JOIN rhnProxyInfo PI ON S.id = PI.server_id#011 WHERE USP.user_id = 3#011 AND S.id = USP.server_id#011 AND Sinfo.server_id = S.id#011 AND ((SELECT count (*) FROM rhnServerErrataTypeView setv WHERE setv.server_id = s.id) > 0); |
Most frequent queries (N) ^
| Rank | Times executed | Total duration | Av. duration (ms) | Query | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 451
|
5ms | 0.01 | select nextval (''); |
||||||||
| 2 | 429
|
102.5s | 0.24 | COMMIT; |
||||||||
| 3 | 358
|
45ms | 0.13 | insert into rhnActionConfigRevision (action_id, failure_id, created, modified, server_id, config_revision_id, id) values (0, NULL, '', '', 0, 0, 0); |
||||||||
| 4 | 331
|
2ms | 0.00 | BEGIN; |
||||||||
| 5 | 275
|
64ms | 0.23 | select * from rhn_config_channel.get_user_revision_access('',0, 0) as result; |
||||||||
| 6 | 203
|
3ms | 0.01 | select '' from dual; |
||||||||
| 7 | 72
|
3ms | 0.04 | DELETE FROM QRTZ_FIRED_TRIGGERS WHERE ENTRY_ID = ''; |
||||||||
| 8 | 63
|
107.7s | 1.71 | #0 select a.id, sa.server_id, pc.jabber_id,#0 date_diff_in_days(current_timestamp, earliest_action) * 0 delta#0 from#0 rhnServerAction sa,#0 rhnAction a,#0 rhnPushClient pc#0 where pc.server_id = sa.server_id#0 and sa.action_id = a.id#0 and sa.status in (...) -- Queued or picked up#0 and not exists (#0 -- This is like saying 'this action has no#0 -- prerequisite or has a prerequisite that has completed#0 -- (status = 0)#0 select 0#0 from rhnServerAction sap#0 where sap.server_id = sa.server_id#0 and sap.action_id = a.prerequisite#0 and sap.status != 0#0 )#0 order by earliest_action#0; |
||||||||
| 9 | 63
|
15ms | 0.24 | #0 update rhnPushClient#0 set state_id = 0#0 where state_id = 0#0 and last_ping_time is not null#0 and current_timestamp > next_action_time#0; |
||||||||
| 10 | 63
|
8ms | 0.12 | #0 select id, name, shared_key, jabber_id#0 from rhnPushClient#0 where state_id = 0#0 and last_ping_time is not null#0 and next_action_time is null#0 and jabber_id is not null#0; |
||||||||
| 11 | 62
|
5ms | 0.08 | SELECT COALESCE( ( SELECT CR.id#0 FROM rhnConfigChannel CC, rhnConfigChannelType CCT,#0 rhnConfigRevision CR, rhnServerConfigChannel SCC, rhnConfigFile CF#0 WHERE SCC.server_id = 0#0 AND CF.config_channel_id = SCC.config_channel_id#0 AND CF.config_file_name_id = 0#0 AND SCC.config_channel_id = CC.id#0 AND CC.confchan_type_id = CCT.id#0 AND CCT.label = ''#0 AND CF.latest_config_revision_id = CR.id) ,#0 ( SELECT CR.id#0 FROM rhnConfigRevision CR, rhnServerConfigChannel SCC, rhnConfigFile CF#0 WHERE CF.latest_config_revision_id = CR.id#0 AND CF.config_file_name_id = 0#0 AND CF.config_channel_id = SCC.config_channel_id#0 AND SCC.server_id = 0#0 AND SCC.position = ( SELECT min(SCC.position)#0 FROM rhnServerConfigChannel SCC, rhnConfigFile CF#0 WHERE SCC.server_id = 0#0 AND CF.config_channel_id = SCC.config_channel_id#0 AND CF.config_file_name_id = 0 ) ) ) AS id#0 FROM dual; |
||||||||
| 12 | 53
|
2ms | 0.04 | SELECT TRIGGER_NAME, TRIGGER_GROUP, NEXT_FIRE_TIME, PRIORITY FROM QRTZ_TRIGGERS WHERE TRIGGER_STATE = '' AND NEXT_FIRE_TIME < 0 AND (NEXT_FIRE_TIME >= 0) ORDER BY NEXT_FIRE_TIME ASC, PRIORITY DESC; |
||||||||
| 13 | 36
|
65ms | 1.80 | select * from logging.clear_log_id() as result; |
||||||||
| 14 | 36
|
7ms | 0.20 | UPDATE QRTZ_TRIGGERS SET TRIGGER_STATE = '' WHERE TRIGGER_NAME = '' AND TRIGGER_GROUP = '' AND TRIGGER_STATE = ''; |
||||||||
| 15 | 36
|
7ms | 0.20 | INSERT INTO QRTZ_FIRED_TRIGGERS (ENTRY_ID, TRIGGER_NAME, TRIGGER_GROUP, IS_VOLATILE, INSTANCE_NAME, FIRED_TIME, STATE, JOB_NAME, JOB_GROUP, IS_STATEFUL, REQUESTS_RECOVERY, PRIORITY) VALUES('', '', '', '', '', 0, '', NULL, NULL, '', '', 0); |
||||||||
| 16 | 36
|
7ms | 0.19 | UPDATE QRTZ_TRIGGERS SET JOB_NAME = '', JOB_GROUP = '', IS_VOLATILE = '', DESCRIPTION = NULL, NEXT_FIRE_TIME = 0, PREV_FIRE_TIME = 0, TRIGGER_STATE = '', TRIGGER_TYPE = '', START_TIME = 0, END_TIME = 0, CALENDAR_NAME = NULL, MISFIRE_INSTR = 0, PRIORITY = 0 WHERE TRIGGER_NAME = '' AND TRIGGER_GROUP = ''; |
||||||||
| 17 | 36
|
6ms | 0.16 | INSERT INTO QRTZ_FIRED_TRIGGERS (ENTRY_ID, TRIGGER_NAME, TRIGGER_GROUP, IS_VOLATILE, INSTANCE_NAME, FIRED_TIME, STATE, JOB_NAME, JOB_GROUP, IS_STATEFUL, REQUESTS_RECOVERY, PRIORITY) VALUES('', '', '', '', '', 0, '', '', '', '', '', 0); |
||||||||
| 18 | 36
|
3ms | 0.08 | UPDATE QRTZ_CRON_TRIGGERS SET CRON_EXPRESSION = '' WHERE TRIGGER_NAME = '' AND TRIGGER_GROUP = ''; |
||||||||
| 19 | 36
|
1ms | 0.03 | select taskosched0_.id as id2_, taskosched0_.job_label as job2_2_, taskosched0_.bunch_id as bunch3_2_, taskosched0_.org_id as org4_2_, taskosched0_.active_from as active5_2_, taskosched0_.active_till as active6_2_, taskosched0_.cron_expr as cron7_2_, taskosched0_.data as data2_, taskosched0_.created as created2_, taskosched0_.modified as modified2_ from rhnTaskoSchedule taskosched0_ where taskosched0_.id=0; |
||||||||
| 20 | 36
|
1ms | 0.03 | select templates0_.bunch_id as bunch2_1_, templates0_.id as id1_, templates0_.ordering as ordering1_, templates0_.id as id4_0_, templates0_.bunch_id as bunch2_4_0_, templates0_.task_id as task3_4_0_, templates0_.ordering as ordering4_0_, templates0_.start_if as start5_4_0_, templates0_.created as created4_0_, templates0_.modified as modified4_0_ from rhnTaskoTemplate templates0_ where templates0_.bunch_id=0; |
Slowest queries (N) ^
| Rank | Av. duration (ms) | Times executed | Total duration | Query | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 885.10 | 9
|
7,965.9s | update PXTSessions set value='', web_user_id=0, expires=0 where id=0; |
||||||||
| 2 | 565.82 | 2
|
1,131.6s | SELECT DISTINCT UAO.id AS ID,#0 UAO.earliest_action AS EARLIEST,#0 A.prerequisite AS PREREQUISITE,#0 UAO.type_name,#0 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#0 UAO.scheduler,#0 WC.login AS SCHEDULER_NAME,#0 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (...)) AS "IN_PROGRESS_SYSTEMS",#0 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 0) AS "COMPLETED_SYSTEMS",#0 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 0) AS "FAILED_SYSTEMS"#0 FROM rhnUserActionOverview UAO left join#0 web_contact WC on UAO.scheduler = WC.id,#0 rhnAction A#0 WHERE UAO.org_id = 0#0 AND UAO.user_id = 0#0 AND UAO.action_status_id IN (...)#0 AND UAO.archived = 0#0 AND UAO.id = A.id#0ORDER BY EARLIEST DESC; |
||||||||
| 3 | 243.04 | 1
|
243.0s | SELECT DISTINCT UAO.id AS ID,#011 UAO.earliest_action AS EARLIEST,#011 A.prerequisite AS PREREQUISITE,#011 UAO.type_name,#011 (CASE UAO.action_name WHEN NULL THEN UAO.type_name ELSE UAO.action_name END) AS ACTION_NAME,#011 UAO.scheduler,#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status IN (0,1)) AS "IN_PROGRESS_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 2) AS "COMPLETED_SYSTEMS",#011 (SELECT COUNT(server_id) FROM rhnServerAction WHERE action_id = UAO.id AND status = 3) AS "FAILED_SYSTEMS"#011 FROM rhnUserActionOverview UAO, rhnAction A, rhnSet ST#011 WHERE UAO.org_id = 1#011 AND UAO.user_id = 3#011 AND UAO.action_status_id IN (0,1)#011 AND UAO.archived = 0#011 AND UAO.id = A.id#011 AND ST.user_id = 3#011 AND ST.label = 'pending_action_list'#011 AND ST.element = A.id#011ORDER BY EARLIEST DESC; |
||||||||
| 4 | 48.10 | 1
|
48ms | SELECT S.id, S.NAME,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable#011 FROM rhnServerInfo SI,#011 rhnServer S#011 WHERE S.org_id = 1#011 AND EXISTS (SELECT 1 FROM rhnUserServerPerms USP WHERE USP.user_id = 3 AND USP.server_id = S.id)#011 AND SI.server_id = S.id#011 AND SI.checkin < current_timestamp - numtodsinterval(1 * 86400, 'second')#011ORDER BY SI.checkin DESC; |
||||||||
| 5 | 46.71 | 1
|
47ms | SELECT S.ID, S.NAME#011#011#011 FROM rhnServer S,#011#011#011 rhnServerConfigChannel SCC,#011 #011 rhnUserServerPerms USP#011#011#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011#011#011 AND SCC.config_channel_id = 1#011#011#011 AND S.id = SCC.server_id#011 #011#011 AND USP.server_id = S.id#011#011#011 AND USP.user_id = 3#011#011#011 ORDER BY S.NAME; |
||||||||
| 6 | 41.23 | 1
|
41ms | SELECT S.ID, S.NAME#011#011#011 FROM rhnServer S,#011#011#011#011 rhnSet ST,#011#011#011 rhnServerConfigChannel SCC,#011 #011 rhnUserServerPerms USP#011#011#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011#011#011 AND SCC.config_channel_id = 1#011#011#011 AND S.id = SCC.server_id#011#011#011 AND ST.user_id = 3#011 #011#011 AND ST.label = 'config_channel_deploy_systems'#011#011#011 AND ST.element = S.id#011 #011#011 AND USP.server_id = S.id#011#011#011 AND USP.user_id = 3#011#011 ORDER BY S.NAME; |
||||||||
| 7 | 21.68 | 3
|
65ms | SELECT ACR.server_id AS ID, count(*) AS config_files_with_differences#0 FROM#0 (SELECT rSA.server_id, MAX(rA.id)#0 FROM rhnAction rA#0 JOIN rhnServerAction rSA#0 ON rSA.action_id = rA.id#0 JOIN rhnActionStatus rAS#0 ON rAS.id = rSA.status#0 JOIN rhnActionType rAT#0 ON rAT.id = rA.action_type#0 WHERE RSA.server_id in (...)#0 AND rAS.name in (...)#0 AND rAT.label = ''#0 GROUP BY rSA.server_id#0 ) X#0 JOIN rhnActionConfigRevision ACR#0 ON X.server_id = ACR.server_id#0 JOIN rhnActionConfigRevisionResult ACRR#0 ON ACR.id = ACRR.action_config_revision_id#0 WHERE ACR.failure_id is null#0 AND ACRR.result is not null#0GROUP BY ACR.server_id; |
||||||||
| 8 | 19.81 | 1
|
20ms | SELECT S.id, S.NAME, S.info, S.created,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable,#011#011#011(select C.name#011#011#011#011from rhnChannel C#011#011#011#011inner join rhnServerChannel SC on SC.channel_id = C.id#011 #011#011#011where SC.server_id = S.id#011#011#011#011and C.parent_channel IS NULL) AS CHANNEL_LABELS,#011 (SELECT wc.login#011 FROM web_contact wc#011 WHERE wc.id = s.creator_id) as creator_name#011 FROM rhnServer S#011 WHERE S.org_id = 1#011 AND EXISTS (SELECT 1 FROM rhnUserServerPerms USP WHERE USP.user_id = 3 AND USP.server_id = S.id)#011 AND S.created > current_timestamp - numtodsinterval(30 * 86400, 'second')#011ORDER BY S.created DESC; |
||||||||
| 9 | 13.84 | 2
|
28ms | SELECT id from rhnDevice; |
||||||||
| 10 | 9.23 | 1
|
9ms | SELECT#011 s.id as id,#011 s.name as name,#011 s.description as description,#011 s.info as info,#011 s.created as registered,#011 s.running_kernel as runningKernel,#011 sl.machine as machine,#011 sl.rack as rack,#011 sl.room as room,#011 sl.building as building,#011 sl.address1 as address1,#011 sl.address2 as address2,#011 sl.city as city,#011 sl.state as state,#011 sl.country as country,#011 rsn.hostname as hostname,#011 rsn.ipaddr as ipaddr,#011 rsn.ip6addr as ip6addr,#011 dmi.vendor as dmiVendor,#011 dmi.system as dmiSystem,#011 dmi.product as dmiProduct,#011 dmi.bios_vendor as dmiBiosVendor,#011 dmi.bios_version as dmiBiosVersion,#011 dmi.bios_release as dmiBiosRelease,#011 dmi.asset as dmiAsset,#011 dmi.board as dmiBoard,#011 cpu.bogomips as cpuBogoMIPS,#011 cpu.cache as cpuCache,#011 cpu.family as cpuFamily,#011 cpu.mhz as cpuMHz,#011 cpu.stepping as cpuStepping,#011 cpu.flags as cpuFlags,#011 cpu.model as cpuModel,#011 cpu.version as cpuVersion,#011 cpu.vendor as cpuVendor,#011 cpu.nrcpu as cpuNumberOfCpus,#011 cpu.acpiversion as cpuAcpiVersion,#011 cpu.apic as cpuApic,#011 cpu.apmversion as cpuApmVersion,#011 cpu.chipset as cpuChipset,#011 si.checkin as checkin,#011 rr.ram as ram,#011 rr.swap as swap,#011 vi.uuid as uuid#011 FROM rhnServer s#011 LEFT OUTER JOIN rhnServerNetwork rsn ON s.id = rsn.server_id#011 LEFT OUTER JOIN rhnServerInfo si on s.id = si.server_id#011 LEFT OUTER JOIN rhnRam rr on s.id = rr.server_id#011 LEFT OUTER JOIN rhnServerLocation sl ON s.id = sl.server_id#011 LEFT OUTER JOIN rhnServerDmi dmi ON s.id = dmi.server_id#011 LEFT OUTER JOIN rhnCPU cpu on s.id = cpu.server_id; |
||||||||
| 11 | 8.20 | 1
|
8ms | SELECT DISTINCT S.id,#011 S.name,#011 SI.server_id AS IS_RHN_SATELLITE,#011 PI.server_id AS IS_RHN_PROXY,#011 TO_CHAR(Sinfo.checkin, 'YYYY-MM-DD HH24:MI:SS') AS LAST_CHECKIN,#011 (SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = S.id#011 AND SFV.label = 'ftr_system_grouping') AS selectable#011 FROM rhnServerInfo SInfo, rhnUserServerPerms USP, rhnServer S#011 LEFT OUTER JOIN rhnSatelliteInfo SI ON S.id = SI.server_id#011 LEFT OUTER JOIN rhnProxyInfo PI ON S.id = PI.server_id#011 WHERE USP.user_id = 3#011 AND S.id = USP.server_id#011 AND Sinfo.server_id = S.id#011 AND ((SELECT count (*) FROM rhnServerErrataTypeView setv WHERE setv.server_id = s.id) > 0); |
||||||||
| 12 | 7.60 | 2
|
15ms | SELECT UAO.id,#0 UAO.action_status,#0 UAO.tally#0 FROM rhnUserActionOverview UAO#0 WHERE UAO.org_id = 0#0 AND UAO.user_id = 0#0 AND UAO.id IN (...); |
||||||||
| 13 | 7.10 | 2
|
14ms | SELECT E.id, E.update_date, E.synopsis as advisory_synopsis#0 FROM rhnErrata E,#0 (SELECT SNEC.errata_id, COUNT(SNEC.server_id) C#0 FROM rhnServerNeededPackageCache SNEC#0 WHERE SNEC.server_id IN (SELECT server_id FROM rhnUserServerPerms USP WHERE USP.user_id = 0)#0 AND errata_id IS NOT NULL#0 GROUP BY SNEC.errata_id) X#0 WHERE E.id = X.errata_id#0 AND E.advisory_type = ''#0ORDER BY E.update_date DESC, E.id; |
||||||||
| 14 | 4.17 | 1
|
4ms | SELECT#011 s.id as id,#011 s.name as name,#011 s.description as description,#011 s.info as info,#011 s.created as registered,#011 s.running_kernel as runningKernel,#011 sl.machine as machine,#011 sl.rack as rack,#011 sl.room as room,#011 sl.building as building,#011 sl.address1 as address1,#011 sl.address2 as address2,#011 sl.city as city,#011 sl.state as state,#011 sl.country as country,#011 rsn.hostname as hostname,#011 rsn.ipaddr as ipaddr,#011 rsn.ip6addr as ip6addr,#011 dmi.vendor as dmiVendor,#011 dmi.system as dmiSystem,#011 dmi.product as dmiProduct,#011 dmi.bios_vendor as dmiBiosVendor,#011 dmi.bios_version as dmiBiosVersion,#011 dmi.bios_release as dmiBiosRelease,#011 dmi.asset as dmiAsset,#011 dmi.board as dmiBoard,#011 cpu.bogomips as cpuBogoMIPS,#011 cpu.cache as cpuCache,#011 cpu.family as cpuFamily,#011 cpu.mhz as cpuMHz,#011 cpu.stepping as cpuStepping,#011 cpu.flags as cpuFlags,#011 cpu.model as cpuModel,#011 cpu.version as cpuVersion,#011 cpu.vendor as cpuVendor,#011 cpu.nrcpu as cpuNumberOfCpus,#011 cpu.acpiversion as cpuAcpiVersion,#011 cpu.apic as cpuApic,#011 cpu.apmversion as cpuApmVersion,#011 cpu.chipset as cpuChipset,#011 si.checkin as checkin,#011 rr.ram as ram,#011 rr.swap as swap,#011 vi.uuid as uuid#011 FROM rhnServer s#011 LEFT OUTER JOIN rhnServerNetwork rsn ON s.id = rsn.server_id#011 LEFT OUTER JOIN rhnServerInfo si on s.id = si.server_id#011 LEFT OUTER JOIN rhnRam rr on s.id = rr.server_id#011 LEFT OUTER JOIN rhnServerLocation sl ON s.id = sl.server_id#011 LEFT OUTER JOIN rhnServerDmi dmi ON s.id = dmi.server_id#011 LEFT OUTER JOIN rhnCPU cpu on s.id = cpu.server_id#011 LEFT OUTER JOIN rhnVirtualInstance vi on s.id = vi.virtual_system_id#011 WHERE s.modified >= $1#011 or rsn.modified >= $2#011 or si.checkin >= $3#011 or rr.modified >= $4#011 or sl.modified >= $5#011 or dmi.modified >= $6; |
||||||||
| 15 | 3.00 | 1
|
3ms | SELECT#011 G.ID AS ID, G.NAME AS NAME,#011#011#011 (SELECT COUNT(*) FROM rhnUserManagedServerGroups UMSG WHERE UMSG.server_group_id = G.id)#011 AS GROUP_ADMINS,#011#011#011#011(SELECT COUNT(*) FROM rhnServerGroupMembers SGM WHERE SGM.server_group_id = G.id#011 AND EXISTS ( SELECT 1#011 FROM rhnServerFeaturesView SFV#011 WHERE SFV.server_id = SGM.server_id#011 AND SFV.label = 'ftr_system_grouping')) AS SERVER_COUNT,#011 (SELECT CASE MAX(CASE PS.state#011 WHEN 'OK' THEN 1#011 WHEN 'PENDING' THEN 2#011 WHEN 'UNKNOWN' THEN 3#011 WHEN 'WARNING' THEN 4#011 WHEN 'CRITICAL' THEN 5 END)#011 WHEN 1 THEN 'OK'#011 WHEN 2 THEN 'PENDING'; |
||||||||
| 16 | 2.99 | 1
|
3ms | SELECT SERVER_ID AS ID, SECURITY_ERRATA, BUG_ERRATA, ENHANCEMENT_ERRATA, OUTDATED_PACKAGES, SERVER_NAME,#011 SERVER_ADMINS, GROUP_COUNT, MODIFIED, CHANNEL_LABELS, HISTORY_COUNT,#011 LAST_CHECKIN_DAYS_AGO, PENDING_UPDATES, OS, RELEASE, SERVER_ARCH_NAME, LAST_CHECKIN, LOCKED#011 FROM rhnServerOverview#011 WHERE server_id IN (1000010025, 1000010027)#011ORDER BY SECURITY_ERRATA DESC, BUG_ERRATA DESC, ENHANCEMENT_ERRATA DESC; |
||||||||
| 17 | 2.31 | 3
|
7ms | SELECT COUNT(CF.id) AS num_files#0 FROM rhnconfigfile CF,#0#0 rhnconfigrevision CR,#0#0 rhnconfigfiletype CFT#0 WHERE CF.config_channel_id = 0#0 AND CF.latest_config_revision_id = CR.id#0 AND CR.config_file_type_id = CFT.id#0 AND CFT.label = ''#0 AND rhn_config_channel.get_user_file_access(CF.id, 0) = 0; |
||||||||
| 18 | 1.92 | 2
|
4ms | SELECT CF.id,#0#0 CF.latest_config_revision_id,#0 CFN.path,#0 CR.revision AS latest_config_revision,#0 coalesce(CCon.modified, CR.modified) as modified,#0#0 CFT.label as type#0 FROM rhnConfigFileName CFN,#0 rhnConfigFile CF,#0 rhnConfigRevision CR LEFT OUTER JOIN rhnConfigContent CCon#0 ON CR.config_content_id = CCon.id,#0#0 rhnSet ST,#0#0 rhnConfigFileType CFT#0 WHERE rhn_config_channel.get_user_chan_access(0, 0) = 0#0 AND ST.user_id = 0#0 AND ST.label = ''#0 AND ST.element = CF.id#0 AND CF.config_channel_id = 0#0 AND CFN.id = CF.config_file_name_id#0 AND CR.config_file_id = CF.id#0 AND CF.latest_config_revision_id = CR.id#0 AND CFT.id = CR.config_file_type_id#0ORDER BY CFN.path; |
||||||||
| 19 | 1.85 | 1
|
2ms | SELECT CF.id,#011#011 CF.latest_config_revision_id,#011 CFN.path,#011#011 CR.revision AS latest_config_revision,#011 coalesce(CCon.modified, CR.modified) as modified,#011 CFT.label as type#011 FROM rhnConfigFileName CFN,#011 rhnConfigFile CF,#011 rhnConfigRevision CR LEFT OUTER JOIN rhnConfigContent CCon#011 ON CR.config_content_id = CCon.id,#011 rhnConfigFileType CFT#011 WHERE rhn_config_channel.get_user_chan_access(1, 3) = 1#011 AND CF.config_channel_id = 1#011 AND CFN.id = CF.config_file_name_id#011 AND CR.config_file_id = CF.id#011 AND CF.latest_config_revision_id = CR.id#011 AND CR.config_file_type_id = CFT.id#011ORDER BY CFN.path; |
||||||||
| 20 | 1.80 | 36
|
65ms | select * from logging.clear_log_id() as result; |