I'm querying multiple tables joined together
SELECT a.column, b.column, c.column
FROM t1 AS a, t2 AS b, t3 AS c
WHERE a.column = b.column AND a.column = b.column AND a.column = b.column
Is there any way to limit the amount of data scanned, so it doesn't query the entire dataset? Note there isn't the possibility of filtering by date/time or some other condition.
I know that if you put LIMIT 100 it can still query the entire results set. Is there a way to literally just query a random set of 100 rows and return them (cutting down on query time and workload )