Why does the entity _ah_SESSION weigh so much and space is not released?

3

I'm working with Google App Engine and Google Datastore and the Objectify library and everything is fine, but I've noticed that the entity _ah_SESSION is increasing too much and occupies more than 90% of the total size of my entities even though for now it's just me who is testing the application.

Is there a way to avoid this automatically?

For now what I do is delete the entities manually since it is the information of the sessions of the users.

    
asked by Gemasoft 07.01.2016 в 19:52
source

1 answer

1

App Engine sessions are not deleted when they expire, so they continue to take up space.

In Java there is a servlet to clean expired sessions, but you have to set up a cron job to do the cleaning .

In python there is no service within the API natively, but there is the project gae-sessions , it has several years it does not move, but you can use the method delete_expired_sessions

    
answered by 07.01.2016 в 20:33