My team works with a large enterprise application built in Java that interacts with an Oracle SQL database. We utilize JavaScript on the front end and are constantly seeking ways to enhance the performance of our application as its usage grows.
Currently, we are encountering an issue where a Java query is returning 39,000 records, causing a heavy load on the server and leading to browser hang. It's worth noting that the data is relatively static (updating only once a year) and we are considering using an XML map or a similar flat file approach since we know the expected results each time.
Despite our efforts, the query still takes 1.5 - 2 minutes to load, which is unacceptable. We are exploring options to optimize this scenario, including the possibility of leveraging JavaScript (or jQuery) and AJAX for a quicker database connection. We are open to suggestions on how to approach this problem more effectively.