Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 40::Complaint Not upheld]]
SQL Query
SELECT DISTINCT
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t7.o_sortkey
FROM
`wiki_smw_object_ids` AS t0
INNER JOIN
(`wiki_smw_fpt_inst` AS t2
INNER JOIN
(`wiki_smw_di_blob` AS t4
INNER JOIN
`wiki_t5` AS t5 ON t4.p_id=t5.id) ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
INNER JOIN
`wiki_smw_di_time` AS t7 ON t0.smw_id=t7.s_id
WHERE
(t2.o_id=17895
AND (
(t4.o_hash='Complaint Not upheld')
))
AND (t7.p_id=17617)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t7.o_sortkey DESC
LIMIT
55
OFFSET
0
t0.smw_id AS id,
t0.smw_title AS t,
t0.smw_namespace AS ns,
t0.smw_iw AS iw,
t0.smw_subobject AS so,
t0.smw_sortkey AS sortkey, t7.o_sortkey
FROM
`wiki_smw_object_ids` AS t0
INNER JOIN
(`wiki_smw_fpt_inst` AS t2
INNER JOIN
(`wiki_smw_di_blob` AS t4
INNER JOIN
`wiki_t5` AS t5 ON t4.p_id=t5.id) ON t2.s_id=t4.s_id) ON t0.smw_id=t2.s_id
INNER JOIN
`wiki_smw_di_time` AS t7 ON t0.smw_id=t7.s_id
WHERE
(t2.o_id=17895
AND (
(t4.o_hash='Complaint Not upheld')
))
AND (t7.p_id=17617)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t7.o_sortkey DESC
LIMIT
55
OFFSET
0
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t5 | ALL | PRIMARY | 4 | Using temporary; Using filesort | ||||
1 | SIMPLE | t4 | ref | s_id, p_id, o_hash, s_id_2 | p_id | 262 | alexsken_foiwiki.t5.id, const | 1 | Using index condition | |
1 | SIMPLE | t2 | ref | s_id, o_id, s_id_2, o_id_2 | s_id_2 | 9 | alexsken_foiwiki.t4.s_id, const | 1 | Using index | |
1 | SIMPLE | t7 | ref | s_id, p_id, p_id_2, s_id_2 | s_id_2 | 8 | alexsken_foiwiki.t4.s_id, const | 1 | Using index | |
1 | SIMPLE | t0 | eq_ref | PRIMARY, smw_id, smw_iw, smw_iw_2 | PRIMARY | 4 | alexsken_foiwiki.t4.s_id | 1 | Using where |
Auxilliary Tables
- Temporary table t5
Recursively computed hierarchy for element(s) (17650).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17650 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50275054 - Hampshire Probation Board - 26/04/2010
- FS50249189 - Derbyshire County Council - 19/04/2010
- FS50274047 - Insolvency Service - 19/04/2010
- FS50218809 - Electoral Commission - 31/03/2010
- FS50186242 - Thames Valley Police - 31/03/2010
- FS50255373 - Attorney General’s Office - 29/03/2010
- FS50279800 - Ministry of Justice - 29/03/2010
- FS50211876 - Portsmouth City Council - 25/03/2010
- FS50189595 - Department for Employment and Learning - 25/03/2010
- FS50278279 - General Medical Council - 25/03/2010
- FS50205418 - Electoral Commission - 24/03/2010
- FS50216431 - Portsmouth City Council - 24/03/2010
- FS50281100 - Chief Constable of Kent Police - 15/03/2010
- FS50248774 - General Medical Council - 25/02/2010
- FS50242131 - North Yorkshire Fire & Rescue Service - 18/02/2010
- FS50262410 - Hartlepool Borough Council - 17/02/2010
- FS50248766 - General Medical Council - 15/02/2010
- FS50245527 - University of Plymouth - 15/02/2010
- FS50198232 - National Audit Office - 11/02/2010
- FS50280638 - Ministry of Justice - 08/02/2010
- FS50211438 - Lincolnshire County Council - 03/02/2010
- FS50268377 - Department for Environment Food and Rural Affairs - 01/02/2010
- FS50123289 - Ministry of Defence - 28/01/2010
- FS50213781 - Leicestershire County Council - 22/12/2009
- FS50213780 - Coventry City Council - 21/12/2009
- FS50227557 - Nottinghamshire County Teaching Primary Care Trust - 17/12/2009
- FS50259954 - Olympic Delivery Authority - 16/12/2009
- FS50202116 - HM Treasury - 14/12/2009
- FS50269400 - CityWest Homes - 14/12/2009
- FS50206018 - North Wales Police - 14/12/2009
- FS50257450 - Lincolnshire County Council - 14/12/2009
- FS50259158 - Royal Orthopaedic Hospital NHS Foundation Trust - 03/12/2009
- FS50249263 - London Fire and Emergency Planning Authority - 03/12/2009
- FS50246397 - UK Sports Council - 03/12/2009
- FS50194701 - House of Lords Appointments Commission - 24/11/2009
- FS50208340 - Health and Safety Executive - 23/11/2009
- FS50150198 - Lancaster City Council - 17/11/2009
- FS50202562 - Liverpool Womens NHS Foundation Trust - 17/11/2009
- FS50089555 - Ministry of Defence - 17/11/2009
- FS50169417 - Hart District Council - 17/11/2009
- FS50184494 - Foreign and Commonwealth Office - 16/11/2009
- FS50139983 - Office for Standards in Education - 10/11/2009
- FS50196759 - Department of Health - 10/11/2009
- FS50186249 - Department for Environment Food and Rural Affairs - 10/11/2009
- FS50148118 - Bedfordshire Police - 27/10/2009
- FS50230718 - Bedfordshire Police - 27/10/2009
- FS50237840 - Chief Constable of West Mercia Police - 27/10/2009
- FS50255918 - South Kesteven District Council - 26/10/2009
- FS50131984 - Export Credits Guarantee Department - 20/10/2009
- FS50127453 - The Treasury Solicitor's Department (TSOL) - 19/10/2009