Semantic search
Jump to navigation
Jump to search
Debug output SQLStore
ASK Query
[[Category:Items]] [[Page type is::!weapon]] [[Page type is::!armor]] [[Page type is::!shield]] [[Enchanted is::true]]
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, t0.smw_sort
FROM
`smw_object_ids` AS t0
INNER JOIN
(`smw_fpt_inst` AS t2
INNER JOIN
`t3` AS t3 ON t2.o_id=t3.id
INNER JOIN
`smw_di_blob` AS t4 ON t2.s_id=t4.s_id
INNER JOIN
`smw_di_blob` AS t6 ON t2.s_id=t6.s_id
INNER JOIN
`smw_di_blob` AS t8 ON t2.s_id=t8.s_id
INNER JOIN
`smw_di_bool` AS t10 ON t2.s_id=t10.s_id) ON t0.smw_id=t2.s_id
WHERE
(
((t4.o_hash!='weapon') AND t4.p_id=2021236)
AND (
(t6.o_hash!='armor') AND t6.p_id=2021236)
AND (
(t8.o_hash!='shield') AND t8.p_id=2021236)
AND (
(t10.o_value=1) AND t10.p_id=2021972)
)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
LIMIT
55
OFFSET
10
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, t0.smw_sort
FROM
`smw_object_ids` AS t0
INNER JOIN
(`smw_fpt_inst` AS t2
INNER JOIN
`t3` AS t3 ON t2.o_id=t3.id
INNER JOIN
`smw_di_blob` AS t4 ON t2.s_id=t4.s_id
INNER JOIN
`smw_di_blob` AS t6 ON t2.s_id=t6.s_id
INNER JOIN
`smw_di_blob` AS t8 ON t2.s_id=t8.s_id
INNER JOIN
`smw_di_bool` AS t10 ON t2.s_id=t10.s_id) ON t0.smw_id=t2.s_id
WHERE
(
((t4.o_hash!='weapon') AND t4.p_id=2021236)
AND (
(t6.o_hash!='armor') AND t6.p_id=2021236)
AND (
(t8.o_hash!='shield') AND t8.p_id=2021236)
AND (
(t10.o_value=1) AND t10.p_id=2021972)
)
AND t0.smw_iw!=':smw'
AND t0.smw_iw!=':smw-delete'
AND t0.smw_iw!=':smw-redi'
ORDER BY
t0.smw_sort ASC
LIMIT
55
OFFSET
10
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t10 | index_merge | s_id, o_value, p_id | p_id,o_value | 4,2 | 375 | Using intersect(p_id,o_value); Using where; Using temporary; Using filesort | ||
1 | SIMPLE | t0 | eq_ref | PRIMARY, smw_id, smw_iw, smw_iw_2 | PRIMARY | 4 | drwiki.t10.s_id | 1 | Using where | |
1 | SIMPLE | t2 | ref | s_id, o_id, s_id_2, o_id_2 | s_id_2 | 4 | drwiki.t10.s_id | 1 | Using where; Using index; Distinct | |
1 | SIMPLE | t3 | eq_ref | PRIMARY | PRIMARY | 4 | drwiki.t2.o_id | 1 | Distinct | |
1 | SIMPLE | t4 | ref | s_id, p_id, o_hash, s_id_2 | s_id | 8 | drwiki.t10.s_id, const | 1 | Using where; Distinct | |
1 | SIMPLE | t6 | ref | s_id, p_id, o_hash, s_id_2 | s_id | 8 | drwiki.t10.s_id, const | 1 | Using where; Distinct | |
1 | SIMPLE | t8 | ref | s_id, p_id, o_hash, s_id_2 | s_id | 8 | drwiki.t10.s_id, const | 1 | Using where; Distinct |
Auxilliary Tables
- Temporary table t3
Recursively computed hierarchy for element(s) (20645).
SELECT s_id FROM `smw_fpt_subc` WHERE o_id=20645 LIMIT 1
Query Metrics
Query-Size:9Query-Depth:1
Errors and Warnings
None