40820

Change on indexed=False to True not realized by DataStorage and query

Inside my model I had a property that was set to indexed=False. To use it in a projection I had to change this to indexed=True. But surprisingly now doing a query does not give a single result, always empty. Any hint to reindex the table or why the result set is empty?

https://developers.google.com/appengine/docs/python/ndb/properties#options

Answer1:

For data that was saved before you changed indexed from False to True, any indexes will not include that property. You need to save each of your entities again to re-index them with the property now included in the index.

Depending on the size of your dataset, you can do this in a request handler (100s of entities), a taskqueue (1000s of entities), or using a MapReduce job (10000+ entities).

Recommend

  • How to use pandas to read a line from a csv, proceed a VLOOKUP action and save the results into anot
  • Magento installation
  • Changing a single index of a Series
  • Pandas remap to range in column
  • How to trigger processing of yaml files in local build?
  • How to fetch the file list from gcs?
  • How to emulate integrated numeric keypad cursor keys in linux
  • Connection pooling with URLConnection?
  • HSQLDB Statement and Java NaN doubles
  • Google Places API - Get more than 10 photos from Details Response?
  • Android Oreo JobIntentService Keep running in background for Android 7 &below and crashing often
  • Connecting Google Cloud SQL with Wordpress on Google Compute Engine
  • How to make SASS put relative paths in its output
  • How to change placeholder text in an autocomplete activity of android google place?
  • Find group of records that match multiple values
  • Jackson Parser: ignore deserializing for type mismatch
  • How to use remove-erase idiom for removing empty vectors in a vector?
  • Seeking advice on Jetty HttpClient Hang
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Why is an OPTIONS request sent to the server?
  • Sails.js/waterline: Executing waterline queries in toJSON function of a model?
  • RectangularRangeIndicator format like triangular using dojo
  • Cross-Platform Protobuf Serialization
  • How to set my toolbar fixed while scrolling android
  • Redux, normalised entities and lodash merge
  • Do create extension work in single-user mode in postgres?
  • Google cloud sdk not working when python points python3
  • Delete MySQLi record without showing the id in the URL
  • php design question - will a Helper help here?
  • Unanticipated behavior
  • Is there a mandatory requirement to switch app.yaml?
  • Comma separated Values
  • Revoking OAuth Access Token Results in 404 Not Found
  • AngularJs get employee from factory
  • using HTMLImports.whenReady not working in chrome
  • Trying to get generic when generic is not available
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Authorize attributes not working in MVC 4
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Android Heatmap on canvas or ImageView