
Multiple database access in a site can create overheads. There is a chance of this being adversely affecting the site performance if the size of the website is considerably large.
Consider a function that returns the details of a new product. And if we call this function in different regions of a page, the query will be executed for each function call. ie, multiple database requests are made for the same result.