LiteDB.Studio icon indicating copy to clipboard operation
LiteDB.Studio copied to clipboard

Column data not displayed

Open mjfreelancing opened this issue 4 years ago • 1 comments

I have an array of 512 elements, each element looks like so:

public class Spectra { public double Wavelength { get; set; } public double Wavenumber { get; set; } public double Value { get; set; } public double? Processed { get; set; } }

I've discovered that this data IS stored in the database but DbStudio shows an empty cell.

If I reduce the number of items to 450 then I can see the JSON in the cell.

mjfreelancing avatar Aug 25 '20 06:08 mjfreelancing

What @mjfreelancing means Is: For nested collection, the cell in the column will not show any text after Max string length

reproduce the issue


var db = new LiteDatabase(@"Test.db");
var users = db.GetCollection<User>();

var osama = new User
{
    Username = "Osama Al Banna"
};

for (int i = 0; i < 633; i++) // 634 will stop showing
{
    osama.Spectras.Add(new Spectra
    {
        Value = 232,
        Processed = 23,
        Wavelength = 43,
        Wavenumber = 56
    });
}

users.Insert(osama);

If you open The LiteDB Studio you will find Spectras Column Specific Cell Empty

2020-10-20_175521

AlBannaTechno avatar Oct 20 '20 15:10 AlBannaTechno