Hi @bhawana, One possible solution is to use a caching layer in front of your database, such as Memcached or SafePeak. These tools can store the query results in a distributed memory cache and allow you to access them from multiple platforms. This way, you can avoid hitting the database directly for each query and reduce the load on your database server.
Another possible solution is to use a temporary table or a view in your database to store the query results. You can then join this table or view it with other tables or views in your queries and avoid repeating the same query. This way, you can leverage the indexes and statistics of your database to optimize your queries.
You can find more information about these solutions :
I hope this helps you with your problem. Please let me know if you have any other questions or feedback. ๐