What would a good index be for these 2 cases?
A)
SELECT p.content, u.name
FROM posts p, admins a, users u
WHERE
p.tag = a.tag and
a.id = u.id and
p.content = 'Hello World';
B)
SELECT u.name, p.date
FROM users u, posts p
WHERE
u.userid = p.userid and
p.content = 'Hello World';
I tried finding out how the performance is affected by creating different indexes one-by-one. With every new index, the query run faster, but then after dropping them, the gained performance remained. So in the end, I couldn't compare.