2010-07-20 67 views
0

我正试图将应用部署到Google AppEngine。但DataStore索引建设似乎永远存在。我的index.yaml的内容Google AppEngine索引延迟

indexes: 

# AUTOGENERATED 

# This index.yaml is automatically updated whenever the dev_appserver 
# detects that a new type of query is run. If you want to manage the 
# index.yaml file manually, remove the above marker line (the line 
# saying "# AUTOGENERATED"). If you want to manage some indexes 
# manually, move them above the marker line. The index.yaml file is 
# automatically uploaded to the admin console when you next deploy 
# your application using appcfg.py. 

- kind: comments 
    properties: 
    - name: content_type_id 
    - name: is_public 
    - name: is_removed 
    - name: object_pk 
    - name: site_id 
    - name: created 

- kind: comments 
    properties: 
    - name: content_type_id 
    - name: object_pk 
    - name: user_email 
    - name: user_name 
    - name: user_url 
    - name: created 

- kind: content_type 
    properties: 
    - name: app_label 
    - name: name 

- kind: pages 
    properties: 
    - name: post_status 
    - name: created 

- kind: pages 
    properties: 
    - name: post_status 
    - name: post_title 

- kind: posts 
    properties: 
    - name: post_status 
    - name: created 

- kind: posts 
    properties: 
    - name: post_status 
    - name: created 
    direction: desc 

有关如何加速过程的任何想法?

回答

1

加速索引的唯一方法就是在数据较少时创建索引 - 尽管这会增加插入的额外开销。除此之外,你必须让自动系统尽可能快地构建索引。

+0

即使在数据存储中没有数据的情况下部署应用程序时,它也会花费很多时间为索引提供服务。有任何想法吗? – GeekTantra 2010-07-20 09:09:36

+1

索引构建队列由所有应用程序共享,所以在繁忙时间,即使是空索引也需要一段时间才能构建。不过这应该不会有太大影响,因为你应该只需要相对较少地建立新的索引。 – 2010-07-20 09:22:22