I posted a bug with this already (including a sample application to reproduce it) here:
https://code.google.com/p/googleappengine/issues/detail?id=13485I'm just re-posting it here so that people are aware:
It seems that ndb.put_multi has a serious memory leak when using large (1000) batches of heterogeneous entries which makes it unsuitable for batch-load tasks (ie. I want to load 1m entries in the datastore). The workarounds I found are:
- only use it with homogeneous entities
- use smaller batch size (100)
Hope that this gets resolved soon.