Litedb: Question: Why can't I nest more than 20 documents?

Created on 30 Aug 2017  路  2Comments  路  Source: mbdavid/LiteDB

I see that MAX_DEPTH is a constant of 20 in BsonMapper. Why is this? Is this an arbitrarily chosen number, or is there a technical reason we cannot override this number and set it to say, 40?

suggestion

Most helpful comment

Thanks @mbdavid. That makes sense. It would be a nice enhancement to make this a public property on BsonMapper.cs, with a default setting of 20, rather than a constant.

Keep up the good work. LiteDB is working out great for me so far as a cross-platform doc store.

All 2 comments

Hi @iupchris10, it麓s just an arbitrarily number, can be increse to any number.... it麓s just to simple way to detect circular reference.

Thanks @mbdavid. That makes sense. It would be a nice enhancement to make this a public property on BsonMapper.cs, with a default setting of 20, rather than a constant.

Keep up the good work. LiteDB is working out great for me so far as a cross-platform doc store.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darcome picture darcome  路  3Comments

axelgenus picture axelgenus  路  3Comments

darcome picture darcome  路  3Comments

furesoft picture furesoft  路  4Comments

nightroman picture nightroman  路  3Comments