views:

56

answers:

3

In addition to the datastore for your specific site, can you also share one datastore between all your websites? (Like connecting to a different MySQL database from your main MySQL database?)

+1  A: 

Short answer: no, your application has one and only one datastore, and it is completely segregated from every other application's datastore.

Longer answer: if you had an external datastore of some variety that was web-accessible, you could access it using urlfetch, but there is no way to access more than one AppEngine datastore using the datastore API.

Adam Crossland
You can make all datastores web-accessible using the remote_api. This is what the backup/restore scripts use that Google includes in the SDK.
Thilo
A: 

REST is a roundabout way (you probably won't like) doable

LarsOn
+2  A: 

Not really.

Two workarounds:

  1. Use five "versions" of the same app instead of five different apps. They would share the same data store. The sites they power need not look alike at all (except sharing the domain).

  2. Make the data store web-accessible by enabling the remote_api. It is up to you to configure the security for this, and performance is not likely to be great. Also, at the moment, the client-side remote_api is only available for Python (the server-side works on Java, too, though).

Thilo