40 lines
988 B
C#
40 lines
988 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiShe.CollectBus.DataMigration.Options
|
|
{
|
|
/// <summary>
|
|
/// 数据迁移配置
|
|
/// </summary>
|
|
public class DataMigrationOptions
|
|
{
|
|
/// <summary>
|
|
/// MongoDb每批处理量
|
|
/// </summary>
|
|
public int MongoDbDataBatchSize { get; set; } = 1000;
|
|
|
|
/// <summary>
|
|
/// 批量处理通道容量
|
|
/// </summary>
|
|
public int ChannelCapacity { get; set; } = 100_00;
|
|
|
|
/// <summary>
|
|
/// 数据库 每批处理量
|
|
/// </summary>
|
|
public int SqlBulkBatchSize { get; set; } = 1000;
|
|
|
|
/// <summary>
|
|
/// 数据库 每批处理超时时间
|
|
/// </summary>
|
|
public int SqlBulkTimeout { get; set; } = 60;
|
|
|
|
/// <summary>
|
|
/// 处理器数量
|
|
/// </summary>
|
|
public int ProcessorsCount { get; set; } = 4;
|
|
}
|
|
}
|