- 添加模拟数据生成器; - GC时添加碎片整理; - 优化日志输出,添加更多DEBUG监控项目; - 修复输出时分库配置逻辑的严重错误; - 优化了少许内存性能,减少Lambda闭包分配;
26 lines
582 B
C#
26 lines
582 B
C#
using MesETL.App;
|
|
|
|
namespace Mesdb.DataGenerator;
|
|
|
|
public class MockInputOptions
|
|
{
|
|
public IReadOnlyDictionary<string, TableMockOptions> Rules { get; set; } =
|
|
new Dictionary<string, TableMockOptions>();
|
|
}
|
|
|
|
public class TableMockOptions
|
|
{
|
|
public long Amount { get; set; }
|
|
public Func<TableMockContext, DataRecord> Generate { get; set; }
|
|
|
|
public TableMockOptions(long amount, Func<TableMockContext, DataRecord> generate)
|
|
{
|
|
Amount = amount;
|
|
Generate = generate;
|
|
}
|
|
}
|
|
|
|
public struct TableMockContext
|
|
{
|
|
public long Index { get; set; }
|
|
} |