Open rgarner opened 13 years ago
Could consider adding to the tag_parentages
table an extra record with identical parent_tag_id
and child_tag_id
with a distance
of 0. This would allow simple JOIN
rather than IN
queries. Need to check it doesn't introduce regressions around :
These can be mitigated by caching (lots) in the client app, but the IN queries are causing a lot of grief. Need to
EXPLAIN SELECT
much and do better.