'What is Relationship between entities and buckets in Google App Engine
I have some entities created in datastore mode. It's not clear to me how to find the bucket they are stored in.
If I go in to all my buckets using the bucket browser I can't see any of my entities, but can see them if I go go > Storage > DataStore > Entities via hamburger UI from web console.
Are entities stored in a bucket? If so, how do I know which one they were stored in?
Solution 1:[1]
No, entities are not stored in a bucket. Entities are stored in a database. Buckets are for storing files.
Solution 2:[2]
You can export your entities from Datastore and store them in a Cloud Storage bucket as a backup.
This is what's explained in the Exporting and Importing Entities document.
As @gaefan said, Datastore is a NoSQL database and Cloud Storage is for storing files, so there is no "live" connection between them.
Solution 3:[3]
You can move entities between projects. In this case, in the source project you export to a bucket, and then you position yourself in the destination project to import the bucket.
This is useful for backups, testing environments, etc.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | google cloud sucks |
Solution 2 | TasosZG |
Solution 3 | Diego |