Very slow inserting, using in-memory driver

Dec 4, 2011 at 12:35 PM
Edited Dec 4, 2011 at 12:54 PM

About 3-5k inserts/sec, i use test model without any indexes:

build: Wintellect.Sterling.Server.dll, version 1.5.0

public class TestModel
        {
            public TestModel()
            {
            }
            public decimal Id { get; set; }
            public decimal FieldId { get; set; }
            public DateTime Date { get; set; }
            public int Key
            {
                get { return Id.GetHashCode(); }
            }
            public override bool Equals(object obj)
            {
                return obj is TestModel && ((TestModel)obj).Key.Equals(Key);
            }
            public override int GetHashCode()
            {
                return Key;
            }
        }
It's awful productivity for in-memory DB