Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 36::~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 | 4 | 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) (17644).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17644 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50140361 - Cabinet Office - 31/03/2010
- FS50121686 - Ministry of Justice - 30/03/2010
- FS50183692(P) - Royal Mail - 25/03/2010
- FS50146907 - The Treasury Solicitor's Department (TSOL) - 23/03/2010
- FS50144707(P) - Department for Children, Schools and Families - 01/03/2010
- FS50185270(P) - Department of Health - 01/03/2010
- FS50198232(P) - National Audit Office - 11/02/2010
- FS50194621(P) - Ministry of Defence - 04/02/2010
- FS50164902 - Home Office - 03/02/2010
- FS50216168 - HM Revenue and Customs - 25/01/2010
- FS50173585 - Cabinet Office - 22/12/2009
- FS50186903(P) - Department for Culture, Media and Sport - 22/12/2009
- FS50154684 - Department for Culture, Media and Sport - 15/12/2009
- FS50147876(P) - Department for Culture, Media and Sport - 10/12/2009
- FS50191595(P) - Arts Council England - 23/11/2009
- FS50186804 - Department of Health - 19/11/2009
- FS50162256 - Home Office - 16/11/2009
- FS50110034 - Her Majesty's Revenue and Customs - 03/11/2009
- FS50131984 - Export Credits Guarantee Department - 20/10/2009
- FS50131117 - Home Office - 15/10/2009
- FS50088848 - Attorney General’s Office - 28/09/2009
- FS50196750(P) - Olympic Delivery Authority - 22/09/2009
- FS50171494 - University of East Anglia - 21/09/2009
- FS50183238 - Surrey Police - 25/08/2009
- FS50120905(P) - Ministry of Justice - 27/07/2009
- FS50123984(P) - Export Credits Guarantee Department - 21/05/2009
- FS50083102(P) - Department for Children, Schools and Families - 31/03/2009
- FS50140374 - University of Central Lancashire - 30/03/2009
- FS50075956 - Department of Health - 23/03/2009
- FS50105778 - UK Borders Agency - 05/03/2009
- FS50149374 - Department of Health - 22/12/2008
- FS50149373 - Department of Health - 22/12/2008
- FS50149375 - Department of Health - 22/12/2008
- FS50175121 - Department of Health - 15/12/2008
- FS50178057(P) - Department for Culture, Media and Sport - 15/12/2008
- FS50145238(P) - National Offender Management Service - 25/11/2008
- FS50111678(P) - Cabinet Office - 17/11/2008
- FS50144991 - Rochdale Metropolitan Borough Council - 10/11/2008
- FS50169313(P) - British Museum - 23/10/2008
- FS50098388 - Cabinet Office - 01/09/2008
- FS50104809 - Ministry of Defence - 11/08/2008
- FS50174491 - Home Office - 30/06/2008
- FS50130129 - Warwickshire County Council - 16/06/2008
- FS50137686 - Cabinet Office - 27/05/2008
- FS50121390 - Cabinet Office - 14/05/2008
- FS50150598 - Ministry of Justice - 01/05/2008
- FS50120314 - Department of Health - 15/04/2008
- FS50072940 - University College London - 02/04/2008
- FS50069392 - Department of Health - 18/03/2008
- FS50122585(P) - Cumbria County Council - 18/03/2008