Priming Summary Fields
When you go to Administer menu » Customize Data and Screens » Summary Fields, the last option is When should these changes be applied?. Your summary fields will be primed at the time selected.  If you want to look at the code, the function is sumfields_gen_data.