You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OverflowException occurs when trying to add large data to DatabaseBuilder.
Add large data using the ImmutableBuilder's Diff method does not throw OverflowException .
Is it possible to avoid this Exception by changing some settings?
Here is the source code I ran
var builder = new DatabaseBuilder();
var list = new List<Person>();
for (int i = 0; i < 100000000; i++)
{
list.Add(new Person { PersonId = i, Age = i, Gender = (Gender)(i % 2), Name = "AAAAAAAAAAA" });
}
builder.Append(list);
ImmutableBuilder's Diff method does not throw OverflowException
var builder = new DatabaseBuilder();
var list = new List<Person>();
for (int i = 0; i < 100000000; i++)
{
list.Add(new Person { PersonId = i, Age = i, Gender = (Gender)(i % 2), Name = "AAAAAAAAAAA" });
}
var firstData = list.First();
builder.Append(new List<Person>() { firstData });
byte[] dataA = builder.Build();
var db = new MemoryDatabase(dataA);
var builder1 = db.ToImmutableBuilder();
builder1.Diff(list.Skip(1).ToArray());
db = builder1.Build();
builder.Append(list);
OverflowException occurs when trying to add large data to DatabaseBuilder.
Add large data using the ImmutableBuilder's Diff method does not throw OverflowException .
Is it possible to avoid this Exception by changing some settings?
Here is the source code I ran
ImmutableBuilder's Diff method does not throw OverflowException
The text was updated successfully, but these errors were encountered: