Delete a large number (>100K) of files with c# whilst maintaining performance in a web application?

前端 未结 10 2151
[愿得一人]
[愿得一人] 2020-12-30 04:40

I am trying to remove a large number of files from a location (by large I mean over 100000), whereby the action is initated from a web page. Obviously I cou

10条回答
  •  渐次进展
    2020-12-30 05:28

    The best choice (imho) would be to create a seperate process to delete/count the files and check on the progress by polling otherwise you might get problems with browser timeouts.

提交回复
热议问题