2010-07-20 7 views
0

Google AppEngine에 앱을 배포하려고합니다. 그러나 데이터 저장소 인덱스 구축은 오래 걸리는 것처럼 보입니다. 내 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

+1

인덱스 빌드 대기열은 모든 앱에서 공유하므로 바쁜 시간에도 빈 인덱스를 작성하는 데 시간이 걸릴 수 있습니다. 이것은 비교적 중요하지 않지만 새로운 인덱스를 비교적 자주 만들면 안되기 때문에 중요합니다. –

관련 문제