So we have very large logbooks, which regularly OOM, so what I did was write a windows script host file, which deleted just the GPSRoute and Cadence Data from every item before, or after a year, this means that the size is smaller and the file is manageable, but you still have the basic info about the activities and TrainingLoad has all the data for that.

Copy and paste the text below from and including <job> to </job> into a new file called "split.wsf", but a copy of your logbook named test.logbook3 in the same folder. Then run the file at a command prompt with "cscript split.wsf" It will then create two more logbooks, one from before 2011, and one with everything after. But they both have all the activities in, just not all the data about all of them.


<job>
<script language=jscript>

// Enter the name of your log book here:
var LOGBOOK = "test.logbook3"
// Enter the year you want to split here:
var splitYear = 2011;




var output = new ActiveXObject("Msxml2.DomDocument");
output.async=false;
output.load(LOGBOOK);
var activity=output.selectNodes("/Logbook/Activities/Activity");

var outArray=[];
for (var i=0;i<activity.length;i++) {
	var item=activity.item(i);
	var node=item.selectSingleNode("GPSRoute");
	if (node) {
 var date=item.getAttribute("startTime");
	outArray.push({len:node.text.length,date:date});
 var d= new Date(date.substring(0,date.indexOf("T")).replace(/-/gim,"/"))
 if (d.getFullYear()<splitYear) { 
 removeNodeByName(item,"GPSRoute");
 removeNodeByName(item,"CadenceTrack");
 }
	}
}


	function removeNodeByName(item,name) {
	var node=item.selectSingleNode(name);
	if (node) {
	item.removeChild(node);
	}
	}
output.save("Before "+splitYear+" "+LOGBOOK);


output.load(LOGBOOK);
var activity=output.selectNodes("/Logbook/Activities/Activity");

var outArray=[];
for (var i=0;i<activity.length;i++) {
	var item=activity.item(i);
	var node=item.selectSingleNode("GPSRoute");
	if (node) {
 var date=item.getAttribute("startTime");
	outArray.push({len:node.text.length,date:date});
 var d= new Date(date.substring(0,date.indexOf("T")).replace(/-/gim,"/"))
 if (d.getFullYear()>=splitYear) { 
 removeNodeByName(item,"GPSRoute");
 removeNodeByName(item,"CadenceTrack");
 }
	}
}


output.save("After "+splitYear+" "+LOGBOOK);

</script>
</job>
