CLOSE FULL VIEW
Big Data in Real Time at Twitter
Recorded at:
Community comments
I have a question
by
james xu
Posted
Wrong query?
by
José González D'Amico
Posted
Wrong query?
by
José González D'Amico
Around minute 22, Mr. Kallen shows the query for the timeline executed in the original implementation.
In your timeline you see your friends' (AKA followees) tweets, not your followers'. And if I remember correctly, in the Twitter API source_id is a field of Tweets, not of Friends.
Perhaps the query should be this?
SELECT * FROM tweets
WHERE source_id IN
(SELECT user_id
FROM friends
WHERE destination_id = ?)
ORDER BY created_at DESC
LIMIT 20
In your timeline you see your friends' (AKA followees) tweets, not your followers'. And if I remember correctly, in the Twitter API source_id is a field of Tweets, not of Friends.
Perhaps the query should be this?
SELECT * FROM tweets
WHERE source_id IN
(SELECT user_id
FROM friends
WHERE destination_id = ?)
ORDER BY created_at DESC
LIMIT 20




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think