I have a simple but time-consuming operation: when a user clicks a button, he performs an intensive database operation, processes records from the import table into several other tables, one import record at a time. I have a view with a button that starts the operation, and a report is displayed at the end of the operation.
I am considering ways to notify the user that an operation is being processed. Here is a solution that I liked.
I read online about asynchronous operations in MVC. I found some links saying that if your process is CPU related, use synchronous operations. Is the database related process a processed processor or not?
Also, if I got the asynchronous operation route, I should use AsyncController, as described here , or just use Task, as in the example I mentioned, as well as here . or are they all the same?
source
share