PynamoDB icon indicating copy to clipboard operation
PynamoDB copied to clipboard

memory usage growing as we add models

Open navels opened this issue 4 years ago • 3 comments

With each model having its own boto session and client, we're running into memory issues as the number of models in our application grows.

Has anyone tackled this by using a shared session/client across all their models? There does not seem to be a straightforward way of doing this but I'd be surprised if nobody has tried to deal with it.

navels avatar Oct 28 '20 23:10 navels

I am surprised this question has gotten no comments . . . nobody else is struggling with this?

navels avatar Mar 29 '21 01:03 navels

How many models does your application use and how large do you expect the boto client memory usage to be?

ikonst avatar Mar 29 '21 14:03 ikonst

Ack, apologies for not responding, must have missed a notification!

Well a few years have passed and I've moved on to another job with an entirely different stack. Not sure how to answer your questions at this point. Feel free to close this, although I believe the general problem is one worth addressing.

navels avatar Feb 16 '23 03:02 navels