from sophy import Sophia
from msgpack import loads, dumps
env = Sophia(db, auto_open=False)
env.memory_limit = 1024 * 1024 * 1024
env.open()
posts = env.create_database('Post', 'u32')
filepath = os.path.join('dump', 'Posts.xml')
for data in iterate(filepath):
posts[int(data['Id'])] = dumps(data)
env.close()
Hi,It is possible to expect that memory usage will be memory_limit * 2 in some cases, due to malloc() behaviour (fragmentation).Sophia implements memory limit only on logical level. Does the memory consumption stops at some point?