I have this query:
that's taking ages to complete - TweetID is INTEGER PRIMARY KEY and there's an index on Time. Any idea what's wrong there?
Code:
SELECT UserID, JSON FROM TweetsJSON WHERE TweetID <= 999999999999999 AND Time >= 1315535679 AND Time <= 1315708479 ORDER BY TweetID DESC LIMIT 100;
that's taking ages to complete - TweetID is INTEGER PRIMARY KEY and there's an index on Time. Any idea what's wrong there?