You should use caching and save the prices to cache at the time of updating the pricelist. This way, the frontend won’t need to fetch prices directly from the database, which will significantly improve performance.