Google AppEngine Data Warehouse Configuration: Reusable?

The documentation about storage configuration objects confuses me:

"The configuration object can be used any number of times. You must create a separate configuration object for each data warehouse call that uses it." (from AppEngine document)

So I can do something like this:

config = db.create_config(deadline=5) db.put(someModels, config=config) db.delete(someKeys, config=config) 

Or I need to do something like this:

 config = db.create_config(deadline=5) db.put(someModels, config=config) config = db.create_config(deadline=5) db.delete(someKeys, config=config) 

?

thanks

+4
source share
1 answer

This is an option when configuration settings have been changed by creating an RPC. Each RPC can be used only once. New datastore configuration objects can be used multiple times; parameters are now read from them and transmitted.

For reference, when the settings were passed when creating RPC objects, the documents read:

An RPC object can be used only once. You must create a separate RPC object for each data warehouse call that uses it.

+2
source

All Articles