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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -