Semantic search
From CoMakingSpace Wiki
Debug output SQLStore
ASK Query
[[Location::Wood Workshop]] [[Category:Hardware]]
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_di_wikipage` AS t2
INNER JOIN
(`smw_fpt_inst` AS t5
INNER JOIN
`t6` AS t6 ON t5.o_id=t6.id) ON t2.s_id=t5.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.p_id=756 AND t2.o_id=878)
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
0
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_di_wikipage` AS t2
INNER JOIN
(`smw_fpt_inst` AS t5
INNER JOIN
`t6` AS t6 ON t5.o_id=t6.id) ON t2.s_id=t5.s_id) ON t0.smw_id=t2.s_id
WHERE
(t2.p_id=756 AND t2.o_id=878)
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
0
SQL Explain
ID | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
---|---|---|---|---|---|---|---|---|---|---|
1 | SIMPLE | t6 | ALL | PRIMARY | 7 | Using temporary; Using filesort | ||||
1 | SIMPLE | t5 | ref | s_id, o_id, s_id_2, o_id_2 | o_id_2 | 5 | comakingspace_0.t6.id | 5 | Using index | |
1 | SIMPLE | t2 | ref|filter | s_id, o_id, p_id, s_id_2, s_id_3, o_id_2, o_id_3 | p_id|o_id | 8|5 | const, comakingspace_0.t5.s_id | 1 (5%) | Using where; Using rowid filter | |
1 | SIMPLE | t0 | eq_ref | PRIMARY, smw_id, smw_iw, smw_iw_2 | PRIMARY | 4 | comakingspace_0.t5.s_id | 1 | Using where |
Auxilliary Tables
- Temporary table t6
Recursively computed hierarchy for element(s) (515).
SELECT s_id FROM `smw_fpt_subc` WHERE o_id=515 LIMIT 1
Query Metrics
Query-Size:3Query-Depth:1
Errors and Warnings
None- 10 Million Dollar Sticks
- Bandsaw Blades
- Bandsaw Fence
- Bandsaw Sled
- Bench Hook
- Bevel Edge Chisels
- Bevel Gauges
- Braces
- Calipers
- Carving Chisels
- Caulking Guns
- Centerline Gauge
- Clamps
- Corner Clamping Jigs
- Dowel Centers
- Elektra Beckum PK 255
- End Mills
- Hammer A3-31
- Hammers
- Hatchet
- Hex Keys
- Hole Saws
- Knives
- Mallets
- Masonry Drill Bits
- Metabo BS 1638 W
- Miter Saw
- Outfeed Roller
- Panel Carriers
- Personal Protection
- Pliers
- Pricking Awls
- Pruning Saw
- Punches
- Push Blocks
- Rasp Bits
- Rasps
- Rectangle Router Jig
- Router Bits
- Sanding Belts
- Sanding Discs
- Sandpaper
- Saw Sets
- Screwdriver Bits
- Screwdrivers
- Scriber
- Scroll Saw
- Sheet Sanders
- Shop Scissors
- Socket Wrenches