40 lines
976 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2025-05-18 13:36:11 +08:00
namespace JiShe.CollectBus.Migration
{
/// <summary>
/// 数据迁移配置
/// </summary>
public class DataMigrationOptions
{
/// <summary>
/// MongoDb每批处理量
/// </summary>
public int MongoDbDataBatchSize { get; set; } = 1000;
/// <summary>
/// 批量处理通道容量
/// </summary>
2025-04-30 12:36:54 +08:00
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;
}
}