On OLX like Website , Anytime a user posts a new ad. It comes in top of the page. No search is involved in it. Which technology we can use to make such functions.
Suppose X is visiting my website abc.com. Should I fetch database each time and generate page dynamically ?
or There is a better approach to to that.
Ques no 2. Suppose X is searching a ad on my website abc.com. Should I run sql query on my database every time ?
Please guide me.