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'

mechanical_meat
  • 163,903
  • 24
  • 228
  • 223
blue-sky
  • 51,962
  • 152
  • 427
  • 752
  • 2
    Dear God. AFAIK this is not default behavior. Would you be able to provide more information about how you are deploying? – mechanical_meat Mar 16 '12 at 20:25
  • @bernie I've updated the question to describe how I deploy the project – blue-sky Mar 16 '12 at 20:37
  • Judging from this question/answers ( http://stackoverflow.com/questions/1062540/how-to-delete-all-datastore-in-google-app-engine ) 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. – mechanical_meat Mar 16 '12 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 '12 at 20:45
  • 1
    Also, how do you know the datastore is empty? Are you looking at the admin interface? – mechanical_meat Mar 16 '12 at 20:47
  • @thanks, I checked the datastore and it actually was'nt being deleted. Some code in the app was causing the data not to be displayed. If you put your suggestion into a comment I can accept it, thanks. – blue-sky Mar 16 '12 at 20:53

2 Answers2

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.

mechanical_meat
  • 163,903
  • 24
  • 228
  • 223
1

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

mjaggard
  • 2,389
  • 1
  • 23
  • 45