I have a nightly job that retrieves 2000+ objects sets a value on them and then attempts to persist them. However it is crashing because all the updates are waiting to commit which causes the system to slow down, which causes method to not complete, which causes the commits to not get fired. If I limit my data returned to 100 everything completes and commits as expected. How can I tell hibernate to commit more frequently?

Code:
		List<Widget> allWidgets = widgetManager.findWidgets(); 
		for (Widget widget : allWidgets) {
			Widget activeWidget = widgetManager.getWidget(widget.getParentWidget().getId());
			activeWidget.setSomeCost(activeWidget.getCost() * someValue); 
			widgetManager.updateWidget(activeWidget); 
			
		}
Thanks in advanced,

Keith