며칠 전에 Datastore에 새로운 모델을 도입했습니다. 놀랍게도 나는 아직도 색인 경고 인덱스 내가하시기 바랍니다 실종 무엇 DataStore Indexes
GAE에서 색인 경고를 해결하는 방법은 무엇입니까?
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: FeelTrackerRecord
ancestor: yes
properties:
- name: record_date
- name: timestamp
에서 제공하더라도
W 2014-02-09 03:38:28.480
suspended generator run_to_queue(query.py:938) raised NeedIndexError(no matching index found.
The suggested index for this query is:
- kind: FeelTrackerRecord
ancestor: yes
properties:
- name: timestamp)
W 2014-02-09 03:38:28.480
suspended generator helper(context.py:814) raised NeedIndexError(no matching index found.
The suggested index for this query is:
- kind: FeelTrackerRecord
ancestor: yes
properties:
- name: timestamp)
를 얻을?
예외가 발생하는 코드를 표시해야합니다. 로그에는 제안 된 색인에 대한 하나의 특성 만 표시됩니다. 아마도 timestamp 속성에 대해 조상 (ancestor) 필터와 불평등 필터가있는 쿼리가 있는데,이를 위해 앱 엔진에서 사용할 것을 요구하는 인덱스가 필요합니다. – loki
나열된 색인이 권장 색인과 일치하지 않습니다. 그들은 정확히 일치해야합니다 –