I’m currently working on a domain-specific tool that needs to make db-exports of certain device recordings. We are succesful in making exports, but measuring the progress during the export seems very unpredictable. When the export has just started, progress seems to start at 75% and creeps up to 99 or 100. But sometimes it starts around 25% and then stalls at around 70% and never goes to 100% even though the export is finished (we verify this on disk). Exporting to a network share is even more problematic. What might be the problem?
I would like to reproduce and analyze the situation of the progress stalling. I wonder if you have detected a pattern? That it happens on one device but not on another, or something similar?
Please describe the typical scenario where you most often see the stall.
How many cameras? How big is the timespan? Do you include audio as well as video?
What version is the XProtect VMS? What version of the MIP SDK NuGet has been used to build the MIP SDK application?
Any other details might be relevant, if it happens more on cameras of one model and never or seldom on cameras of another model, that would be top information.
On the progress in general.
A really intelligent progress would be to know the amount of data being exported and then base a progress counter on that, but that information is not available before the export. The progress counter uses the number of tasks and if you have two devices one width huge amount of data and another with very little data the progress behavior will be very much like you observe.