c# - How does Excel Interop's RefreshAll() method work? -


there bunch of excel files. each of excel file has various pivot tables connected sql server analysis (ssas) cubes. on average, each file takes around 30 60 minutes refresh, when done manually. automating writing c# program.

iterating on each file, these steps:

  • instantiate excel application
  • open workbook
  • call .refreshall() method
  • close workbook
  • quit excel application.

currently, have done sequential implementation. no multithreading. open process explorer , see excel process cpu utilized around 1 2% when file refresh in progress.

my question running these steps on multiple threads bring down total time of program? .refreshall() method io intensive? if so, io become bottleneck multiple threads?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -