سؤال

The python dev_appserver automatically adds indexes that are needed to fulfill the queries you make. Is there any reason to go in there and change things? Are there optimisations that you can make that the sdk is not able to figure out by itself?

هل كانت مفيدة؟

المحلول

The App Engine development server automatically creates indexes only if it encounters code that requires them. It's possible that you have code that needs particular indexes, but for whatever reason you never encounter that code path in the dev server - perhaps your local data does not contain entities with a particular value that might trigger a particular lookup which requires an index.

نصائح أخرى

Yes, for some queries you may be able to manually configure indexes to avoid exploding cases.

https://developers.google.com/appengine/docs/python/datastore/indexes?hl=en

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top