Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6215721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:06:26+00:00 2026-05-24T07:06:26+00:00

I’ve done a lot of development in rails, and am looking into developing projects

  • 0

I’ve done a lot of development in rails, and am looking into developing projects using python & app engine.

From the demo project and what I’ve seen so far, I’ve got a question/concern about app engine projects:

How is data migration handled in app-engine? For example, if I change the name of an entity/table (ex: Texts to Documents), or change a column in an existing table (ex: age to dob) – how does it handle old data when this happens?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:06:26+00:00Added an answer on May 24, 2026 at 7:06 am

    The short answer is: It doesn’t handle it. You can’t change the name of an entity, you can change a property but you’ll have to update the data manually.

    Your Model definitions are just your applications “view” of how to interpret the entities stored in the datastore. If I had a definition like:

    class MyEntity(db.Model):
        text = db.TextProperty()
    

    And run my application for a while filling up the text property of my enties, Then later renamed the column to:

    class MyEntity(db.Model):
        description = db.TextProperty()
    

    All my existing data would stay exactly as it was (lots of entities in the datastore with populated text properties. Only when I tried to load the entities into my model instances I would only see them as empty entities (with no description set, and no way to access the text data that currently exists). Saving (Putting) my entity back into the datastore would then overwrite the old data, and the data would be lost.

    If you make changes to your schema like this, or more likely just changing a field type. It will be up to you to pre-process your data to handle the changes. The model-layer will raise errors if you try and load an entity that no-longer conforms to your model definitions.

    To help with this manual task of updating your data the weapons of choice are:

    1. remote_api / remote_api_shell.py
    2. The mapreduce library (especially the “mapper” part)

    With the remote_api[1] setup you can open an interactive Python session to your live data, and run scripts locally (mostly) as if they are running directly on the production servers. I find this is the fastest easiest way to fix/cleanup data for smallish one-off tasks.

    The mapper api[2] could be employed if you have a much larger task, say altering millions of entities and want to take advantage of doing as much of this in parallel as possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am using Paperclip to handle profile photo uploads in my app. They upload
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.