
2025-09-22 07:09:52
Content warning:
It took me some time to make sense of the paragraph on how to remove statements using #quickstatements here: https://www.wikidata.org/wiki/Help:QuickStatements#Removin…
It took me some time to make sense of the paragraph on how to remove statements using #quickstatements here: https://www.wikidata.org/wiki/Help:QuickStatements#Removin…
Note:
SELECT *
FROM t1 INNER JOIN t2
ON concat(t1.a,t1.b,t1.c) =
concat(t2.a,t2.b,t2.c)
is much faster than
FROM t1 INNER JOIN t2
ON t1.a = t2.a AND t1.b = t2.b AND t3.a = t3.b
The ad hoc calculated key creates a hash join reducing the complexity to O(n)