Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 31::~Complaint* 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 LIKE 'Complaint% 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 LIKE 'Complaint% 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 | 2 | Using temporary; Using filesort | ||||
1 | SIMPLE | t4 | ref | s_id, p_id, o_hash, s_id_2 | p_id | 4 | alexsken_foiwiki.t5.id | 38 | Using index condition | |
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 | |
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; Distinct |
Auxilliary Tables
- Temporary table t5
Recursively computed hierarchy for element(s) (17682).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17682 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50129139(P) - Department for Business, Innovation and Skills - 25/03/2010
- FS50206324 - Home Office - 01/03/2010
- FS50243486 - Home Office - 24/02/2010
- FS50231561 - Commissioner of the Metropolitan Police Service - 15/02/2010
- FS50161581 - Greater Manchester Police - 17/12/2009
- FS50154684 - Department for Culture, Media and Sport - 15/12/2009
- FS50178276 - Commissioner of the Metropolitan Police Service - 10/12/2009
- FS50173181 - Youth Justice Board for England and Wales - 10/12/2009
- FS50182444(P) - Independent Police Complaints Commission - 26/11/2009
- FS50129430 - Financial Services Authority - 18/11/2009
- FS50167298(P) - Department for Transport - 16/11/2009
- FS50131117 - Home Office - 15/10/2009
- FS50184898(P) - Charity Commission - 13/10/2009
- FS50222048 - Chief Constable of Essex Police - 08/09/2009
- FS50201305 - Her Majesty's Revenue and Customs - 01/09/2009
- FS50156552(P) - Thames Valley Police - 20/08/2009
- FS50172159 - Home Office - 17/08/2009
- FS50159091(P) - Her Majesty's Courts Service - 13/08/2009
- FS50230583 - Commissioner of the Metropolitan Police Service - 12/08/2009
- FS50154876 - Home Office - 04/08/2009
- FS50113479(P) - Wakefield Metropolitan District Council - 27/07/2009
- FS50156313(P) - Department for Transport - 01/07/2009
- FS50125350 - National Police Improvement Agency - 16/06/2009
- FS50193437 - Financial Services Authority - 19/05/2009
- FS50145357 - Chief Constable of Hampshire Constabulary - 12/05/2009
- FS50154349 - Metropolitan Police Service - 20/04/2009
- FS50121803(P) - Ministry of Justice - 14/04/2009
- FS50168527 - Civil Aviation Authority - 30/03/2009
- FS50073464(P) - South Yorkshire Police - 16/03/2009
- FS50174997(P) - BBC - 02/03/2009
- FS50123912 - Northumbria Police - 20/01/2009
- FS50169313 - British Museum - 23/10/2008
- FS50121687 - The Broads Authority - 10/09/2008
- FS50106800 - Metropolitan Police Service - 20/08/2008
- FS50150268(P) - Office of Fair Trading - 18/08/2008
- FS50129974 - Hampshire Constabulary - 13/08/2008
- FS50106712 - Financial Services Authority - 11/08/2008
- FS50150272 - HM Customs and Excise - 30/07/2008
- FS50169012 - Chief Constable of Hampshire Constabulary - 17/07/2008
- FS50124800 - Hertfordshire Partnership NHS Trust - 02/06/2008
- FS50132101 - Civil Aviation Authority - 29/05/2008
- FS50140492 - Home Office - 04/04/2008
- FS50150536 - Hampshire County Council - 02/01/2008
- FS50154913 - Northern Ireland Office - 18/12/2007
- FS50176919 - Assembly Ombudsman for Northern Ireland - 17/12/2007
- FS50108122 - Birmingham City Council - 19/11/2007
- FS50083358 - Home Office - 10/10/2007
- FS50092311 - Financial Services Authority - 27/09/2007
- FS50116822 - Sheffield Teaching Hospitals NHS Foundation Trust - 27/09/2007
- FS50133972 - Financial Services Authority - 20/09/2007