Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 43::~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 | 3 | 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) (17723).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17723 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50183692(P) - Royal Mail - 25/03/2010
- FS50211063 - Leeds Metropoliten University - 18/03/2010
- FS50211784 - Central Bedfordshire Council - 02/02/2010
- FS50218090 - Swanage Town Council - 26/01/2010
- FS50214920 - Camden Primary Care Trust - 07/01/2010
- FS50154684 - Department for Culture, Media and Sport - 15/12/2009
- FS50214210 - Vehicle and Operator Services Agency - 03/12/2009
- FS50240406 - Royal Mail - 01/12/2009
- FS50129430 - Financial Services Authority - 18/11/2009
- FS50089555(P) - Ministry of Defence - 17/11/2009
- FS50169315(P) - North West London Hospitals NHS Trust - 16/11/2009
- FS50216278 - Royal Mail - 09/11/2009
- FS50089556(P) - Department for Business, Innovation and Skills - 15/10/2009
- FS50131117 - Home Office - 15/10/2009
- FS50171494 - University of East Anglia - 21/09/2009
- FS50229756 - Export Credits Guarantee Department - 17/09/2009
- FS50176916 - British Transport Police Authority - 24/08/2009
- FS50207431 - Department for Transport - 17/08/2009
- FS50161805 - Ministry of Justice - 28/07/2009
- FS50178268 - Ministry of Justice - 28/07/2009
- FS50130316 - Food Standards Agency - 27/07/2009
- FS50173361 - University of Oxford - 21/07/2009
- FS50125005(P) - Trafford Metropolitan Borough Council - 17/06/2009
- FS50125350 - National Police Improvement Agency - 16/06/2009
- FS50164262 - Bristol City Council - 27/05/2009
- FS50193437 - Financial Services Authority - 19/05/2009
- FS50160256 - Department for Culture, Media and Sport - 06/04/2009
- FS50160904 - King's College London - 31/03/2009
- FS50083102 - Department for Children, Schools and Families - 31/03/2009
- FS50160902(P) - University of Oxford - 31/03/2009
- FS50140374 - University of Central Lancashire - 30/03/2009
- FS50145203(P) - Caerphilly County Borough Council - 24/03/2009
- FS50128406 - Export Credits Guarantee Department - 23/02/2009
- FS50188894 - The Priory Group - 17/02/2009
- FS50090393(P) - BBC - 09/02/2009
- FS50088736 - Department of Health - 29/01/2009
- FS50149373 - Department of Health - 22/12/2008
- FS50149375 - Department of Health - 22/12/2008
- FS50149374 - Department of Health - 22/12/2008
- FS50178376 - Royal Mail - 18/12/2008
- FS50133140 - BBC - 11/12/2008
- FS50088016 - Department for International Development - 27/11/2008
- FS50126264 - Student Loans Company Ltd - 03/11/2008
- FS50169313(P) - British Museum - 23/10/2008
- FS50163364 - Imperial College London - 21/10/2008
- FS50168782 - Hampshire County Council - 08/10/2008
- FS50145663 - Department for Environment Food and Rural Affairs - 11/09/2008
- FS50106712 - Financial Services Authority - 11/08/2008
- FS50156040 - Student Loans Company Ltd - 30/07/2008
- FS50141374 - Department for Transport - 28/07/2008