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
25
OFFSET
70
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
25
OFFSET
70
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- FS50178463 - Newcastle College - 11/08/2009
- FS50174518 - London Borough of Bromley - 03/08/2009
- FS50111290 - Brownhills Community Technology College - 03/08/2009
- FS50194697 - Bedgrove Junior School - 30/07/2009
- FS50222787 - Independent Police Complaints Commission - 28/07/2009
- FS50146608 - Wakefield Metropolitan District Council - 27/07/2009
- FS50241410 - General Medical Council - 16/07/2009
- FS50196328 - Department for Children, Schools and Families - 13/07/2009
- FS50208265 - Heart of England NHS Foundation Trust - 13/07/2009
- FS50199605 - HM Revenue and Customs - 09/07/2009
- FS50197501 - Wirral University Teaching Hospital NHS Foundation Trust - 29/06/2009
- FS50212869 - Cardiff University - 29/06/2009
- FS50169737 - Metropolitan Police Service - 24/06/2009
- FS50210434 - Chief Constable of Kent Police - 24/06/2009
- FS50125005 - Trafford Metropolitan Borough Council - 17/06/2009
- FS50166779 - Greater Manchester Police - 17/06/2009
- FS50154865 - Her Majesty's Revenue and Customs - 10/06/2009
- FS50208056 - General Medical Council - 08/06/2009
- FS50195769 - Ferry Hill Town Council - 08/06/2009
- FS50240978 - London Borough of Enfield - 02/06/2009