我需要从多个表中存档一天值得数据(700万条记录)。我用于所有批量收集它花了30分钟完成单桌。我想知道在基于主键的多个会话中运行<DataGrid.Columns>
<DataGridTextColumn Header="Foo" Binding="{Binding Path=Foo}">
<DataGridTextColumn.HeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="Red"/>
</Style>
</DataGridTextColumn.HeaderStyle>
</DataGridTextColumn>
<DataGridTextColumn Header="Foo2" Binding="{Binding Path=Foo2}">
<DataGridTextColumn.HeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="Blue"/>
</Style>
</DataGridTextColumn.HeaderStyle>
</DataGridTextColumn>
</DataGrid.Columns>
语句的重要性。
假设我将表 public static ICollection<string[]> SplitAt(this string input, char target, int length, StringSplitOptions opts, bool trim = false)
{
var items = input.Split(new[] { target }, opts);
if (trim) items = items.Select(x => x.Trim()).ToArray();
return InternalSplitAt(items, length);
}
private static ICollection<string[]> InternalSplitAt(string[] items, int length)
{
var collectionToReturn = new List<string[]>();
for (int i = 0; i < items.Length; i += length)
{
collectionToReturn.Add(items.Skip(i).Take(length).ToArray());
}
return collectionToReturn;
}
作为主键delete
。如果我跑了
并行10个会话并循环播放300万条记录,它会改善性能吗?
employee
TIA