GAE - 添加到表格但不反映在索引中的实体 - Python [英] GAE - Entities of Kind added to table but not reflected in indexes - Python

查看:112
本文介绍了GAE - 添加到表格但不反映在索引中的实体 - Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我几天来一直在想这个问题,但似乎无法找到任何答案 - 基本上,我有相同的代码,完全适用于在索引中修改并注册的Kind的名称副本然后我按照GAE给出的例子将entityname.put()转换为ndb,与我对其他Kind的实体做的一样。

然而,这一次新种类的数据我放作为种类实体记录在表中,可在GAE App概览 - 数据存储查看器中的标签下查看,但未反映在数据存储索引中。



由于未反映的数据,实际上由于数据未反映在索引中而无法删除键。



我希望有人可以在此建议我。 Thks提前

解决方案

devserver实际上会在开发者查询时创建您的索引。我认为这可能会发生,如果你:

1-测试使用旧的种类
2-改变种类名称
3-推它就像那样。

通过这种方式,由于您没有使用您的新类型来测试您的查询,系统将永远不会创建这些索引


I've been trying to figure this question for the pass few days but can't seem to find any answer - Basically, I've the same code which works perfectly with a duplicate of the Kind's name modified and registerd in Indexes thereafter I follow the examples given by GAE to "entityname.put()" into ndb, same as what I did with my other Kind's entities.

However, this time the new Kind's datas I "put" are recorded into the table as Kind Entities, viewable under the tab in GAE App overview - 'Datastore Viewer' but are not reflected in the 'Datastore Indexes'

Due to the non-reflected data, I'm actually having trouble deleting the key due to the data not reflected in the Indexes.

I hope someone could advise me on this. Thks in advance

解决方案

the devserver actually CREATES your indexes as they get queried on your dev. I think this could happen if you:

1- test using the old Kind 2- change the kind name 3- push it like that.

In this way, since you didn't test your queries with your new kind, the system will never create those indexes

这篇关于GAE - 添加到表格但不反映在索引中的实体 - Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆