I am working with a very large SQL database through a frontend reactjs application with a node server intermediary using an ORM for query sanitation. However due to the size of the DB it takes some time to search through, sometimes up to 15-25 seconds which makes my react app incredibly slow for the initial load.
I have a spinner component to let the user know its working and am working on optimizing the DB itself but it is a collaborative effort so I was hoping to find something from the frontend perspective to try and alleviate the intense loading times. Are there any standard practices that would let me keep portions of the data off database so that I don't have to wait for the entire query to finish that wouldn't severely risk user data?