出现 NeedIndexError,是不是要等索引完毕?

2010-09-09 11:02:47 +08:00
 faydao
上传完毕,首页出现:

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/base/data/home/apps/putoor/1.344671389517718388/main.py", line 174, in get
for node in qx:
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1786, in __iter__
return self.run()
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 2367, in run
results = _BaseQuery.run(self, **kwargs)
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1770, in run
iterator = raw_query.Run(rpc=rpc)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1151, in Run
return self._Run(**kwargs)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1188, in _Run
str(exc) + '\nThis query needs this index:\n' + yaml)
NeedIndexError: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console.
This query needs this index:
- kind: Node
properties:
- name: category
- name: topics
direction: desc

——————————————————What can I do? wait?_________________________
5592 次点击
所在节点    Project Babel
3 条回复
faydao
2010-09-09 11:06:06 +08:00
搜索了一下NeedIndexError,发现真如我所料。。。

PS.V2EX能编辑自己发表过的主题么?
dimlau
2010-09-09 12:35:19 +08:00
faydao
2010-09-09 13:49:02 +08:00
2个小时45分钟过去了。。依然是Needindexerror

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/2416

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX