[google-appengine] Re: Avoiding index.yaml changes when using dev_appserver

2019-05-16 Thread 'Aref Amiri (Cloud Platform Support)' via Google App Engine
All index definition above AUTOGENERATED line are under manual control and 
would not be updated by the development webserver, and the changes will 
apply to only indexes below the line. Moreover, as George suggested, 
setting store_index_configuration_on_disk parameter to false can also stop 
the webserver from updating the index.yaml file.

As for "--require_indexes" 
,
 
by default it is set to "no" and it basically disables the automatic 
generation of entries in the index.yaml and it will only raise an 
exception,when running a query and the index is not defined.

If you are experiencing an issue and the functionalities are not working as 
expected, I'd suggest to create a Public Issue Tracker, 
 
and provide additional information as well as steps to reproduce, and we 
shall investigate it further.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/74218ed0-9355-4a61-ba30-e50a78e6b41e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Avoiding index.yaml changes when using dev_appserver

2019-05-14 Thread dir Ls
I think there are multiple issues.

1) I got all the indexes created, moved it above the "# AUTOGENERATED" and 
can confirm these indexes in the console. So, even when there are no net 
new indexes getting added, the file keeps getting updated.
2) Regarding how to set, there is already a "--require_indexes" which if 
set should be erroring out when a new index is required. So, if this is 
set, then it shouldn't update the index file, isn't it?

On Tuesday, May 14, 2019 at 7:24:31 AM UTC-7, George (Cloud Platform 
Support) wrote:
>
> This is expected functionality: the development web server 
> (dev_appserver.py) automatically adds items to this file when the 
> application tries to execute a query that needs an index that does not have 
> an appropriate entry in the configuration file. You may find related detail 
> in the "Creating indexes using the development server" sub-chapter of the 
> "Configuring Datastore Indexes" documentation page 
> .
>  
> Setting the store_index_configuration_on_disk parameter seems to be an 
> effective way to stop the server from updating the index.yaml configuration 
> file. How would you like to see this option set? What would come more 
> handy? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f33f08d5-ca87-49ca-9d06-aa6c1e2940fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Avoiding index.yaml changes when using dev_appserver

2019-05-14 Thread 'George (Cloud Platform Support)' via Google App Engine
This is expected functionality: the development web server 
(dev_appserver.py) automatically adds items to this file when the 
application tries to execute a query that needs an index that does not have 
an appropriate entry in the configuration file. You may find related detail 
in the "Creating indexes using the development server" sub-chapter of the 
"Configuring Datastore Indexes" documentation page 
.
 
Setting the store_index_configuration_on_disk parameter seems to be an 
effective way to stop the server from updating the index.yaml configuration 
file. How would you like to see this option set? What would come more 
handy? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fad19fc2-34ef-4fdf-9d87-fa2010d39537%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.