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
50
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
50
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- FS50202556 - General Medical Council - 14/10/2009
- FS50192069 - Newcastle College - 14/10/2009
- FS50190664 - National Offender Management Service - 28/09/2009
- FS50226713 - Manchester City Council - 28/09/2009
- FS50250552 - Department for Transport - 24/09/2009
- FER0157856 - London Borough of Camden - 24/09/2009
- FS50229268 - Leicester City Council - 23/09/2009
- FS50233972 - Hampshire Constabulary - 17/09/2009
- FS50174035 - Chief Constable of Lancashire Constabulary - 14/09/2009
- FS50115412 - Northern Ireland Office - 14/09/2009
- FS50204940 - Lancashire County Council - 10/09/2009
- FS50190517 - Liverpool City Council - 09/09/2009
- FS50232866 - Metropolitan Police Service - 02/09/2009
- FS50132796 - Ministry of Defence - 02/09/2009
- FS50208722 - Backwell Parish Council - 02/09/2009
- FS50138960 - Cambridgeshire Constabulary - 26/08/2009
- FS50224509 - Eastbourne Borough Council - 26/08/2009
- FS50256105 - General Medical Council - 25/08/2009
- FS50246906 - London Borough of Newham - 24/08/2009
- FS50242843 - Judicial Appointments Commission - 24/08/2009
- FS50178463 - Newcastle College - 11/08/2009
- FS50174518 - London Borough of Bromley - 03/08/2009
- FS50111290 - Brownhills Community Technology College - 03/08/2009
- FS50194697 - Bedgrove Junior School - 30/07/2009
- FS50222787 - Independent Police Complaints Commission - 28/07/2009
- FS50146608 - Wakefield Metropolitan District Council - 27/07/2009
- FS50241410 - General Medical Council - 16/07/2009
- FS50196328 - Department for Children, Schools and Families - 13/07/2009
- FS50208265 - Heart of England NHS Foundation Trust - 13/07/2009
- FS50199605 - HM Revenue and Customs - 09/07/2009
- FS50197501 - Wirral University Teaching Hospital NHS Foundation Trust - 29/06/2009
- FS50212869 - Cardiff University - 29/06/2009
- FS50169737 - Metropolitan Police Service - 24/06/2009
- FS50210434 - Chief Constable of Kent Police - 24/06/2009
- FS50125005 - Trafford Metropolitan Borough Council - 17/06/2009
- FS50166779 - Greater Manchester Police - 17/06/2009
- FS50154865 - Her Majesty's Revenue and Customs - 10/06/2009
- FS50208056 - General Medical Council - 08/06/2009
- FS50195769 - Ferry Hill Town Council - 08/06/2009
- FS50240978 - London Borough of Enfield - 02/06/2009
- FS50170381 - Metropolitan Police Service - 20/04/2009
- FS50165472 - BBC - 31/03/2009
- FS50188732 - Ministry of Defence - 30/03/2009
- FS50151464 - Department of Health - 30/03/2009
- FS50197666 - University of Bradford - 30/03/2009
- FS50155868 - Her Majesty's Courts Service - 25/03/2009
- FS50145203 - Caerphilly County Borough Council - 24/03/2009
- FS50165494 - Her Majesty's Courts Service - 19/03/2009
- FS50144708 - Ministry of Justice - 17/03/2009
- FS5073382 - Chief Constable of West Yorkshire Police - 16/03/2009