Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 17::~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 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 t4.p_id=17616)
)
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 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 t4.p_id=17616)
)
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 | t4 | range | s_id, p_id, o_hash, s_id_2 | p_id | 262 | 676 | Using index condition; Using temporary; Using filesort | ||
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
No auxilliary tables used.Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50185270 - Department of Health - 01/03/2010
- FS50246007 - Serious Fraud Office - 01/03/2010
- FS50140182 - Ministry of Justice - 25/02/2010
- FS50259228 - Bolton Council - 25/02/2010
- FS50234378 - Commission for Local Administration in England - 25/02/2010
- FS50209659 - BBC - 25/02/2010
- FS50243486 - Home Office - 24/02/2010
- FS50246664 - Financial Services Authority - 23/02/2010
- FS50219758 - Home Office - 23/02/2010
- FS50237119 - Medicines and Healthcare Products Regulatory Agency - 18/02/2010
- FS50202112 - Home Office - 17/02/2010
- FS50262410 - Hartlepool Borough Council - 17/02/2010
- FS50204620 - Sport England - 15/02/2010
- FS50231561 - Commissioner of the Metropolitan Police Service - 15/02/2010
- FS50245527 - University of Plymouth - 15/02/2010
- FS50227053 - Cabinet Office - 11/02/2010
- FS50198232 - National Audit Office - 11/02/2010
- FS50265162 and FS50274024 - Vehicle and Operator Services Agency - 09/02/2010
- FS50183889 - Insolvency Service - 09/02/2010
- FS50198733 - Home Office - 08/02/2010
- FS50280638 - Ministry of Justice - 08/02/2010
- FS50194621 - Ministry of Defence - 04/02/2010
- FS50164902 - Home Office - 03/02/2010
- FS50211784 - Central Bedfordshire Council - 02/02/2010
- FS50208932 - Ministry of Justice - 02/02/2010
- FS50272235 - Northern Ireland Office - 02/02/2010
- FS50123289 - Ministry of Defence - 28/01/2010
- FS50209658 - HM Revenue and Customs - 28/01/2010
- FS50197952 - Cabinet Office - 28/01/2010
- FS50150310 - Department of Health - 27/01/2010
- FS50218090 - Swanage Town Council - 26/01/2010
- FS50216168 - HM Revenue and Customs - 25/01/2010
- FS50223685 - Home Office - 19/01/2010
- FS50236068 - Foreign and Commonwealth Office - 12/01/2010
- FS50195214 - Attorney General’s Office - 11/01/2010
- FS50155352 - Cabinet Office - 11/01/2010
- FS50247341 - Calderdale and Huddersfield NHS Foundation Trust - 07/01/2010
- FS50128888 - Charity Commission - 23/12/2009
- FS50213781 - Leicestershire County Council - 22/12/2009
- FS50173585 - Cabinet Office - 22/12/2009
- FS50161898 - Department for Communities and Local Government - 21/12/2009
- FS50212581 - Medicines and Healthcare Products Regulatory Agency - 21/12/2009
- FS50192655 - Leeds City Council - 21/12/2009
- FS50213780 - Coventry City Council - 21/12/2009
- FS50102962 - Ministry of Defence - 21/12/2009
- FS50203058 - Office of Communications - 21/12/2009
- FS50161574 - Cabinet Office - 21/12/2009
- FS50174841 - Department for Transport - 17/12/2009
- FS50259598 - Bolton Council - 17/12/2009
- FS50227557 - Nottinghamshire County Teaching Primary Care Trust - 17/12/2009