Мы представили новую модель для нашего Datastore несколько дней назад. Удивительно я все еще получаю Индекс предупрежденийКак устранить предупреждение об индексе GAE?
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)
, даже если индекс подается под DataStore Indexes
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
Что я упускаю, пожалуйста?
Вы должны показать код, который забросил исключение. Поскольку в журнале отображается только одно свойство для предлагаемого индекса. Проще всего у вас есть запрос с фильтрами предков и неравенств для свойства timestamp, для этого вам нужен индекс, который движок приложения говорит вам использовать. – loki
Указанные вами индексы не соответствуют рекомендуемому индексу. Они должны соответствовать точно –