I've a particularly long operation that is going to get run when a user presses a button on an interface and I'm wondering what would be the best way to indicate this back to the client.
The operation is populating a fact table for a number of years worth of data which will take roughly 20 minutes so I'm not intending the interface to be synchronous. Even though it is generating large quantities of data server side, I'd still like everything to remain responsive since the data for the month the user is currently viewing will be updated fairly quickly which isn't a problem.
I thought about setting a session variable after the operation has completed and polling for that session variable. Is this a feasible way to do such a thing? However, I'm particularly concerned about the user navigating away/closing their browser and then all status about the long running job is lost.
Belki o başladı ve bittiğinde yerde işlem kaydını konaklamayı bir kayıt eklemek için daha iyi olurdu. Kullanıcı (veya kullanıcılar), şu anda başarısız / bitmiş / yürütme işleri izleyebilirsiniz böylece daha sonra arabirimi diğer bazı tür oluşturmak?
Ben de herhangi bir kaynak herkes bakmak olabilir mi?
Bunu nasıl yaptın?