Tip regarding avoidance of database querying in dash callbacks


I am currently working on a web app that uses a database with large amounts of data (schema can be found here). While this is obviously common, how does one avoid performing queries in dash callbacks? In the example provided by Dash, a csv file is read, and used to create a dataframe. How would I avoid this while also avoid querying data in callbacks, when there is alot of data that can be potentially be used or remain unused?

Thank you. Any help would be greatly appreciated.