I notice a performance decrease after sorting columns.
I load around 20,000 records (10 folders in a root with 2,000 leafs in each) with 150 columns (displaying 20 columns), then open all nodes and the loading performance is incredible and expand/collapse folders and selecting records is excellent.
However, as soon as I sort one of the columns - the performance decreases: expand/collapse is not as fast and even selecting a record has a notable delay.
After I "Clear Sort" - the performance goes back to lightning fast.
I notice this performance decrease on Window 7 latest Chrome and Firefox but it is very small and the performance is still very good on PC (with slight delays compared to initial load - Opera browser on seems to keep great performace even after sort).
The biggest problem is on IPad 2 Safari, Chrome, Opera and on Samsung Galaxy S3 any browser, as well as Safari 5.1.7 on Windows 7 (again - initial loading with all folders opened and selecting records is extremely fast on all of the above).
On Windows 7 Safari it takes over 10 seconds to sort, and after sorting collapse takes just under 10 seconds and expand takes over 10 seconds, but on IPad it takes even longer. Even simply selecting records takes a long time during which the browser hangs. Again, after clearing sort everything goes back to extremely fast.
These results are with SC 10.0d, but 9.1 has even bigger performance decrease after sorting
Please let me know if you need any additional information.
Here is my test code
I load around 20,000 records (10 folders in a root with 2,000 leafs in each) with 150 columns (displaying 20 columns), then open all nodes and the loading performance is incredible and expand/collapse folders and selecting records is excellent.
However, as soon as I sort one of the columns - the performance decreases: expand/collapse is not as fast and even selecting a record has a notable delay.
After I "Clear Sort" - the performance goes back to lightning fast.
I notice this performance decrease on Window 7 latest Chrome and Firefox but it is very small and the performance is still very good on PC (with slight delays compared to initial load - Opera browser on seems to keep great performace even after sort).
The biggest problem is on IPad 2 Safari, Chrome, Opera and on Samsung Galaxy S3 any browser, as well as Safari 5.1.7 on Windows 7 (again - initial loading with all folders opened and selecting records is extremely fast on all of the above).
On Windows 7 Safari it takes over 10 seconds to sort, and after sorting collapse takes just under 10 seconds and expand takes over 10 seconds, but on IPad it takes even longer. Even simply selecting records takes a long time during which the browser hangs. Again, after clearing sort everything goes back to extremely fast.
These results are with SC 10.0d, but 9.1 has even bigger performance decrease after sorting
Please let me know if you need any additional information.
Here is my test code
Code:
var root = {
children: [{
0: 'rootData',
children: []
}]
},
rootData = root.children[0],
row,
fields = [],
folders = 10,
leafs = 2000,
allCols = 150,
displayCols = 20;
function populate(children){
for(var i=0; i < leafs; i++) {
row = children[i] = {};
for (var j = 0; j < allCols; j++) {
row[j] = i + 1;
}
}
}
for(var i=0; i<folders; i++){
var children = (
rootData.children[i] = {
0: 'child' + i,
children: []
}
).children;
populate(children);
}
for(var j=0; j<displayCols; j++){
fields.push({
name: ''+ j,
title: ''+ j,
align:'right',
width: 150,
prompt: "Tooltip"
})
}
fields[0].frozen = true;
var detailed = TreeGrid.create({
width: '100%',
height: '100%',
showRowNumbers: true,
showConnectors:true,
data: Tree.create({
root: root
}),
fields: fields
});
detailed.data.openAll();