V
V
vnpp2019-01-17 17:03:28
Yii
vnpp, 2019-01-17 17:03:28

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

2 answer(s)
A
Alexander Novikov, 2019-01-17
@AlexndrNovikov

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?

I
Ivan Moroz, 2019-01-18
@mavir

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 question

Ask a Question

731 491 924 answers to any question