Answer the question
In order to leave comments, you need to log in
How in Yii2 to ensure the current work in adjacent tabs, if the user launched a "heavy" (long) query?
Yii2. The user runs a report that takes several minutes to generate. While the report is being generated in adjacent tabs, it is impossible to work until the report has been processed. In another browser or in "incognito" everything works in parallel.
The problem is not the load on the server.
Answer the question
In order to leave comments, you need to log in
Maybe it makes sense to put this operation in the background? through queues + notification "report generated, can be downloaded" after, than to keep a long connection? This will definitely remove the problem
. And did you look at the browser profiler, what about the resource consumption of the tab with the report?
If sessions are stored in files, then close the session before starting a heavy request, since PHP cannot open a new session if the previous one is not closed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question