0

Every time I deploy my application to google app engine, the datastore for the app is cleared. Can this be turned off so that any data that is persisted to the datastore is not deleted between app re-deployments?

To deploy I right click on the project within Eclipse, select 'google' then select 'Deploy to App Engine'

6
  • 2
    Dear God. AFAIK this is not default behavior. Would you be able to provide more information about how you are deploying? Mar 16, 2012 at 20:25
  • @bernie I've updated the question to describe how I deploy the project
    – blue-sky
    Mar 16, 2012 at 20:37
  • Judging from this question/answers ( stackoverflow.com/questions/1062540/… ) it seems to require a process to be able to do something like this. Are there any delete-queries in your code? TBH, I'm grasping for straws right now. Mar 16, 2012 at 20:42
  • There are no delete queries within my app. I figured it was a just a setting that could be turned on or off.
    – blue-sky
    Mar 16, 2012 at 20:45
  • 1
    Also, how do you know the datastore is empty? Are you looking at the admin interface? Mar 16, 2012 at 20:47

2 Answers 2

3

It might be the case that the datastore is not actually empty, and that something in your code is causing the data to not be displayed.

1
  • 1
    (And to verify that you can use the Datastore Viewer in the Admin Console.) Mar 17, 2012 at 5:00
1

Is this in the development environment? That can be the behaviour there if you or your ide are deleting the relevant files.

1
  • i think/hope that this is the case.
    – Tom Willis
    Mar 19, 2012 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.