Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 42::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
255
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
255
OFFSET
50
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 | 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) (17679).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17679 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50113783 - Department for Work and Pensions - 30/08/2007
- FS50139804 - Brighton and Hove City Council - 08/08/2007
- FS50082764 - South Essex Partnership NHS Foundation Trust - 08/08/2007
- FS50094583 - Financial Services Authority - 05/07/2007
- FS50091442 - Scotland Office - 28/06/2007
- FS50087181 - Office for National Statistics - 11/06/2007
- FS50073646 - Ministry of Justice - 05/06/2007
- FS50112248 - Ministry of Defence - 23/05/2007
- FS50136587 - Merseytravel - 22/05/2007
- FS50081525 - HM Treasury - 22/05/2007
- FS50085945 - Department for Education and Skills - 22/05/2007
- FS50117045 - Cheltenham Borough Council - 21/05/2007
- FS50126996 - HM Customs and Excise - 10/04/2007
- FS50085950 - Department for Work and Pensions - 29/03/2007
- FS50063318 - Bury Metropolitan Borough Council - 29/03/2007
- FS50133903 - Her Majesty's Revenue and Customs - 26/03/2007
- FS50130128 - Crown Prosecution Service - 13/03/2007
- FS50075365 - St Albans City and District Council - 05/03/2007
- FS50074788 - Northern Ireland Office - 27/02/2007
- FS50081402 - BBC - 22/02/2007
- FS50094069 - Commission for Patient and Public Involvement in Health - 12/02/2007
- FS50118679 - Vale of Glamorgan Council - 12/02/2007
- FS50092315 - Charity Commission - 29/01/2007
- FS50103099 - BBC - 24/01/2007
- FS50086086 - Valuation Office Agency - 22/01/2007
- FS50128700 - Medicines and Healthcare Products Regulatory Agency - 22/01/2007
- FS50104805 - West Devon Borough Council - 22/01/2007
- FS50081570 - Broadland District Council - 27/11/2006
- FS50071319 - Warwick District Council - 22/11/2006
- FS50071069 - Epsom and St. Helier University Hospitals NHS Trust - 25/10/2006
- FS50118284 - Driver and Vehicle Licensing Agency - 23/10/2006
- FS50076356 - City of London Police - 19/10/2006
- FS50091688 - Department of the Environment (NI) - 17/10/2006
- FS50066289 - Gateshead Council - 04/10/2006
- FS50075765 - Financial Services Authority - 19/09/2006
- FS50070214 - Guildford Borough Council - 18/07/2006
- FS50069921 - Cardiff University - 05/07/2006
- FS50087341 - London Borough of Richmond upon Thames - 29/06/2006
- FS50068826 - Derby City Council - 14/06/2006
- FS50072299 - Huntington Town Council - 13/06/2006
- FAC0070219 - Salisbury District Council - 07/06/2006
- FS50064464 - Norfolk County Council - 07/06/2006
- FS50066752 - Department of the Environment (NI) - 30/05/2006
- FS50077868 - National Assembly for Wales - 04/05/2006
- FAC0070855 - Bexley Council - 11/04/2006
- FAC0064579 - Southend-on-Sea NHS Primary Care Trust - 15/03/2006
- FS50070183 - Richmondshire District Council - 15/12/2005
- FS50069727 - Thanet District Council - 30/11/2005
- FS50067984 - Thanet District Council - 30/11/2005
- FS50080366 - Thanet District Council - 30/11/2005
- FS50068973 - Calderdale Council - 24/11/2005
- FS50066313 - Department of Trade and Industry - 24/10/2005
- FS50068767 - University of Cambridge - 23/09/2005
- FS50064699 - Standards Board for England - 01/08/2005