I have a problem with inserting of many entities.
We use strings as primary key and indices. But if the db table of the entity type contains more and more data then the inserting of further entities needs also more and more ram memory, this leads to out of memory exceptions.
But if use primitive integers as keys and indices then the memory consumption for new entities is constant.
Can you explain this and do you have an idea for the case that strings are used for keys and indices?
See both examples.