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 548669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:06:13+00:00 2026-05-13T11:06:13+00:00

I have a Model with a big blob property User.image Having this property in

  • 0

I have a Model with a big blob property User.image
Having this property in my model made my queries take too much time and go over the deadline so I decided to move that property into another model – UserData – who’s parent is the User.

However, existing model instances that are already in the datastore still contain that image data even though the Model definition no longer contains that property.

Is there any, way to delete that data from the User instances?

  • 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-13T11:06:14+00:00Added an answer on May 13, 2026 at 11:06 am

    The answer to your question is documented here : https://developers.google.com/appengine/articles/update_schema

    Copy/paste from the “Removing Deleted Properties from the Datastore” section :

    If you remove a property from your
    model, you will find that existing
    entities still have the property. It
    will still be shown in the admin
    console and will still be present in
    the datastore. To really clean out the
    old data, you need to cycle through
    your entities and remove the data from
    each one.

    1. Make sure you have removed the properties from the model definition.
    2. If your model class inherits from db.Model, temporarily switch it
      to inherit from db.Expando. (db.Model
      instances can’t be modified
      dynamically, which is what we need to
      do in the next step.)
    3. Cycle through existing entities (like described above). For each
      entity, use delattr to delete the
      obsolete property and then save the
      entity.
    4. If your model originally inherited from db.Model, don’t forget
      to change it back after updating all
      the data.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a big trouble handling the ICollection field on this model This
I am using asp.net mvc 2.0(default binding model) and I have this problem. I
I have a model that looks like this: class ProjectImage(models.Model): big_thumb = ThumbnailField(upload_to='profiles', size=(500,
I have a Model enought big to be cut in 3 Forms. I wanted
I have Django Model with many fields which user must fill. If I'll create
I have the following model(codeigniter) code to upload image and thumbnail. However the result
I have an Event model that includes a start time field, which is stored
I have this model: class Category(models.Model): name = models.CharField() description = models.CharField(blank=True) parent =
Let's say I have a User model, with a facebook_uid field corresponding to the
I have a model: class Item < ActiveRecord::Base Item has a property 'store' Based

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.