I am creating an application like twitter.
I am stuck at a point.
I have all the tweets stored with users profiles.
Now I have to create an algorithm to work better in performance wise to calculate the most trending words in the whole application among all the users.
As my layman approach :
- Hit the complete database
- Search for recurring words
- Created a record for words having the recurrences
- Keep track of say 1000 most recurring words
But on a big application, that seems pretty heavy to me
Can anyone suggest some better approaches?