Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 40::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
55
OFFSET
100
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
55
OFFSET
100
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 | 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) (17650).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17650 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50178908 - Epsom and St. Helier University Hospitals NHS Trust - 16/03/2009
- FS50196748 - General Medical Council - 16/03/2009
- FS50136719 - National Offender Management Service - 10/03/2009
- FS50099274 - Ministry of Justice - 09/03/2009
- FS50105778 - UK Borders Agency - 05/03/2009
- FS50158446 - Northern Lincolnshire and Goole Hospitals NHS Trust - 05/03/2009
- FS50152758 - Wiltshire County Council - 05/03/2009
- FS50188322 - Foreign and Commonwealth Office - 03/03/2009
- FS50158274 - Cabinet Office - 02/03/2009
- FS50170141 - Metropolitan Police Service - 24/02/2009
- FS50125370 - Cleveland Police - 23/02/2009
- FS50093195 - National Offender Management Service - 18/02/2009
- FS50181762 - Shropshire County Council - 17/02/2009
- FS50159410 - Parliamentary and Health Service Ombudsman - 05/02/2009
- FS50142320 - Cabinet Office - 29/01/2009
- FS50088736 - Department of Health - 29/01/2009
- FS50142499 - Crown Prosecution Service - 20/01/2009
- FS50173186 - UK Borders Agency - 20/01/2009
- FS50086696 - University of Northampton - 23/12/2008
- FS50086918 - University of Leicester - 23/12/2008
- FS50193355 - Information Commissioner - 22/12/2008
- FS50170038 - Her Majesty's Courts Service - 18/12/2008
- FS50178057 - Department for Culture, Media and Sport - 15/12/2008
- FS50180838 - Department for Business, Enterprise and Regulatory Reform - 15/12/2008
- FS50150341 - Children and Family Court Advisory and Support Service - 15/12/2008
- FS50173282 - Plymouth Teaching Primary Care Trust - 11/12/2008
- FS50157220 - Charity Commission - 10/12/2008
- FS50169734 - Nursing and Midwifery Council - 24/11/2008
- FS50178913 - Foreign and Commonwealth Office - 24/11/2008
- FS50187315 - Office of the Legal Services Ombudsman - 20/11/2008
- FS50141015 - Department for Work and Pensions - 17/11/2008
- FS50178633 - General Medical Council - 22/10/2008
- FS50180310 - Nursing and Midwifery Council - 15/10/2008
- FS50071188 - Department for Business, Enterprise and Regulatory Reform - 22/09/2008
- FS50145985 - Ministry of Justice - 22/09/2008
- FS50193659 - Liverpool Hope University - 15/09/2008
- FS50156539 - Child Support Agency - 11/09/2008
- FS50179353 - Foreign and Commonwealth Office - 06/08/2008
- FS50141388 - North East Wales Institute of Higher Education - 03/07/2008
- FS50142539 - De Montefort University - 26/06/2008
- FS50147637 - Financial Services Authority - 26/06/2008
- FS50144199 - Peterborough City Council - 19/06/2008
- FS50124800 - Hertfordshire Partnership NHS Trust - 02/06/2008
- FS50088378 - National Archives - 02/06/2008
- FS50144371 - Doncaster College - 29/05/2008
- FS50130239 - Rhondda Cynon Taff County Borough Council - 19/05/2008
- FS50162459 - Cardiff Council - 19/05/2008
- FS50133250 - Caerphilly County Borough Council - 19/05/2008
- FS50150598 - Ministry of Justice - 01/05/2008
- FS50088853 - HM Treasury - 24/04/2008