I'm trying to query the latest entries on two different tables as one query:
SELECT
news.title AS news_title,
news.sid AS news_id,
downloads.lid AS download_id,
downloads.title AS download_title
FROM
news,
downloads
ORDER BY
news_id DESC,
download_id DESC
LIMIT 0,10
The query is really slow and it says "Using temporary; Using filesort"
when I do an EXPLAIN
. Each table has about 2,000 items. Each table's primary key Index is the id (lid
and sid
).