How to make trending system Plz help me

HI I Want to add trending system on my video status app plz help me

This will require an algorithm that determines which videos are trending and which are not. Probably the most popular sorting method is to determine the spike in views from the past 1 and 2 hours. For example, a video got 100 views in a period of 1 hour which started two hours ago, and the same video got 10000 views in the past hour. This is a 100x jump, and since the spike is above a certain value it is considered trending.

1 Like

Thank You For Help And Do You Have Any Idea How TO Add This System My Sql DataBase And App

He already posted the idea. Now you have to work on it.
Database doesn’t matter, the main thing is logic that you uses in your app.