Semantic search
From FOIwiki
Jump to navigationJump to search
Debug output SQLStore
ASK Query
[[Category:ICO Decision Notice]] [[FOI 43::~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 | 3 | 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) (17723).
SELECT s_id FROM `wiki_smw_fpt_subp` WHERE o_id=17723 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- FS50141388 - North East Wales Institute of Higher Education - 03/07/2008
- FS50094496 - Department for Environment Food and Rural Affairs - 03/07/2008
- FS50124423 - Chief Constable of Durham Constabulary - 03/07/2008
- FS50147637 - Financial Services Authority - 26/06/2008
- FS50131138 - Mid Suffolk District Council - 19/06/2008
- FS50115188 - BBC - 17/06/2008
- FS50130129 - Warwickshire County Council - 16/06/2008
- FS50084359(P) - Plymouth Primary Care Trust - 05/06/2008
- FS50161274(P) - Leeds City Council - 27/05/2008
- FS50140478(P) - BBC - 22/05/2008
- FS50114967 - Department of Health - 14/04/2008
- FS50123488 - Financial Services Authority - 14/04/2008
- FS50072940 - University College London - 02/04/2008
- FS50101351(P) - Brightlingsea Town Council - 31/03/2008
- FS50070465 - BBC - 17/03/2008
- FS50131694 - BBC - 13/03/2008
- FS50141012 - Wirral Metropolitan Borough Council - 03/03/2008
- FS50072198(P) - BBC - 27/02/2008
- FS50142318(P) - Somerset NHS Primary Care Trust - 26/02/2008
- FS50105478 - Chief Constable of Cumbria Constabulary - 20/02/2008
- FS50155386(P) - Devon County Council - 19/02/2008
- FS50155404(P) - London Borough of Hammersmith and Fulham - 19/02/2008
- FS50155412(P) - London Borough of Southwark - 19/02/2008
- FS50155411(P) - London Borough of Redbridge - 19/02/2008
- FS50155394(P) - Hampshire County Council - 19/02/2008
- FS50155395(P) - Hertfordshire County Council - 19/02/2008
- FS50155409(P) - London Borough of Lambeth - 19/02/2008
- FS50155406(P) - Harrow Council - 13/02/2008
- FS50155410(P) - London Borough of Islington - 13/02/2008
- FS50155423(P) - Somerset County Council - 13/02/2008
- FS50155424(P) - Suffolk County Council - 13/02/2008
- FS50155418(P) - Oxfordshire County Council - 13/02/2008
- FS50115636 - Ministry of Justice - 13/02/2008
- FS50155429 - Wiltshire County Council - 13/02/2008
- FS50155420(P) - Royal Borough of Kensington and Chelsea - 06/02/2008
- FS50155421(P) - Royal Borough of Windsor and Maidenhead - 06/02/2008
- FS50155397(P) - Kent County Council - 06/02/2008
- FS50155403(P) - London Borough of Newham - 06/02/2008
- FS50155417(P) - Norfolk County Council - 06/02/2008
- FS50155388(P) - East Sussex County Council - 06/02/2008
- FS50155416(P) - London Borough of Sutton - 06/02/2008
- FS50155381(P) - Cornwall County Council - 06/02/2008
- FS50155430(P) - Worcestershire County Council - 04/02/2008
- FS50155427(P) - Warwickshire County Council - 04/02/2008
- FS50155422(P) - Shropshire County Council - 04/02/2008
- FS50155400(P) - Lincolnshire County Council - 04/02/2008
- FS50155391(P) - Tameside Metropolitan Borough Council - 04/02/2008
- FS50155398(P) - Leicestershire County Council - 04/02/2008
- FS50155384(P) - Carmarthenshire County Council - 04/02/2008
- FS50155385(P) - Gwynedd Council - 04/02/2008