I am maintaining an older system. One of the requirements of struts2 + hibernate, is to find the data according to the request of the front end and then download the Excel file. If the request field is empty, then download all the data for today. Usually, there are no more than 3000 data in a day.
there is nothing wrong with the old system doing this. After I take over this project, I want to modify one place, that is, when I download, I have to download the two locations corresponding to each piece of data queried. These two location information is not in the database. One location needs to request a third-party interface, and one location requests another system of our company.
my method is also simple and rough, that is, after I find out, I go through it again, and each record requests location information twice. There is no problem with hundreds of pieces of data, but there is a 504 error when downloading more than 2000 pieces of data.
I can"t think of anything for the time being. I"m here to consult you. Thank you!