Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 31::~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
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 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
50
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t5 | ALL | PRIMARY | 2 | 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) (17682).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17682 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50103691 - Vehicle and Operator Services Agency - 17/09/2007
- FS50118873 - Royal Mail - 09/08/2007
- FS50075781 - Financial Services Authority - 07/08/2007
- FS50105717 - Commission for Patient and Public Involvement in Health - 17/04/2007
- FS50074348 - Department for Constitutional Affairs - 27/03/2007
- FS50074788(P) - Northern Ireland Office - 27/02/2007
- FS50123489 - London Borough of Camden - 13/02/2007
- FS50070234(P) - Surrey and Borders Partnership NHS Trust - 24/08/2006
- FS50072190 - Bexley Council - 25/07/2006
- FS50123769(P) - Lancashire Police - 07/06/2006
- FS50089581 - Devon and Cornwall Constabulary - 06/06/2006
- FS50069091 - Sussex Police - 26/05/2006
- FS50076785 - Police Service of Northern Ireland - 11/05/2006
- FS50095304 - Suffolk Constabulary - 06/04/2006
- FS50066868 - Independent Police Complaints Commission - 15/03/2006
- FS50066311 - Powys County Council - 07/03/2006
- FS50073296 - Bridgend County Borough Council - 09/12/2005
- FS50067004(P) - Oxford City Council - 29/11/2005
- FS50066308(P) - Carmarthenshire County Council - 29/11/2005