Are you using Cloud Datastore?  If so, you can use Datastore Callbacks and 
define "put" and "delete" callback functions on specific kinds.  Whenever 
an entity is put or deleted your callback functions will be called and you 
can do your index updates there.

https://cloud.google.com/appengine/docs/standard/java/datastore/callbacks





On Saturday, December 29, 2018 at 11:34:29 AM UTC-6, Akash Eldo wrote:
>
> I'm creating a Java web server on the Google App Engine to do full text 
> search on my database. Before I can search, I have to add all my database 
> entries to an index. I should only have to do this once because the index 
> is stored in persistent storage. Even if GCP creates a new instance of my 
> Java server, the index should still be there (right?).
>
>
> My question is, how do I set up my program so it will only create the 
> index once? I've tried using Warming Services, but as I understand it that 
> will be called every time a new instance is created, so there'd be 
> redundant calls to my index creation code
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/58f621c0-6b0e-4ecb-8cff-860579e38a7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appe... Akash Eldo
    • [google... Jim
      • [go... Akash Eldo
        • ... 'Tiago (Google Cloud Platform Support)' via Google App Engine

Reply via email to