当从crossfilter中删除数据点时,我有一个性能问题。每次我都要做下面的事情:
dimension.filter(tmpReportId);
var tmpReport = dimension.top(1)[0]; //Because after removal I have to modify the "report" (the data point) and add it back to the crossfilter
reportsVis.getCrossfilter().remove();
dimension.filter(null);问题是,filter()在整个crossfilter上应用了两次,这使得在大型数据集上的操作非常昂贵
发布于 2015-03-05 21:36:33
filter(null)并不是一个开销很大的操作,因为它只清除过滤器,而不执行过滤器。The source probably makes things clear
function crossfilter_filterAll(values) {
return [0, values.length];
}filter(null)和filterAll()是相同的操作,正如您所看到的,它只是返回维度中的每个值。
https://stackoverflow.com/questions/28878838
复制相似问题