Semantic search
Debug output SQLStore
ASK Query
[[Category:City]]
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 t1 ON t0.smw_id=t1.s_id
WHERE
(t1.o_id=1550)
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
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, t0.smw_sort
FROM
"smw_object_ids" AS t0
INNER JOIN
"smw_fpt_inst" AS t1 ON t0.smw_id=t1.s_id
WHERE
(t1.o_id=1550)
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
50
SQL Explain
Limit (cost=132.44..132.46 rows=1 width=112)
└── Unique (cost=131.60..132.44 rows=42 width=112)
└── Sort (cost=131.60..131.70 rows=42 width=112)
Sort Key: t0.smw_sort, t0.smw_id, t0.smw_title, t0.smw_namespace, t0.smw_iw, t0.smw_subobject, t0.smw_sortkey
└── Hash Join (cost=11.01..130.47 rows=42 width=112)
Hash Cond: (t0.smw_id = t1.s_id)
└── Seq Scan on smw_object_ids t0 (cost=0.00..110.82 rows=1314 width=112)
Filter: ((smw_iw <> ':smw'::text) AND (smw_iw <> ':smw-delete'::text) AND (smw_iw <> ':smw-redi'::text))
└── Hash (cost=10.35..10.35 rows=53 width=4)
└── Bitmap Heap Scan on smw_fpt_inst t1 (cost=4.69..10.35 rows=53 width=4)
Recheck Cond: (o_id = 1550)
└── Bitmap Index Scan on smw_fpt_inst_idx_oid_sid (cost=0.00..4.67 rows=53 width=0)
Index Cond: (o_id = 1550)
└── Unique (cost=131.60..132.44 rows=42 width=112)
└── Sort (cost=131.60..131.70 rows=42 width=112)
Sort Key: t0.smw_sort, t0.smw_id, t0.smw_title, t0.smw_namespace, t0.smw_iw, t0.smw_subobject, t0.smw_sortkey
└── Hash Join (cost=11.01..130.47 rows=42 width=112)
Hash Cond: (t0.smw_id = t1.s_id)
└── Seq Scan on smw_object_ids t0 (cost=0.00..110.82 rows=1314 width=112)
Filter: ((smw_iw <> ':smw'::text) AND (smw_iw <> ':smw-delete'::text) AND (smw_iw <> ':smw-redi'::text))
└── Hash (cost=10.35..10.35 rows=53 width=4)
└── Bitmap Heap Scan on smw_fpt_inst t1 (cost=4.69..10.35 rows=53 width=4)
Recheck Cond: (o_id = 1550)
└── Bitmap Index Scan on smw_fpt_inst_idx_oid_sid (cost=0.00..4.67 rows=53 width=0)
Index Cond: (o_id = 1550)
Auxilliary Tables
No auxilliary tables used.Query Metrics
Query-Size:1Query-Depth:0
Errors and Warnings
None