【发布时间】:2016-04-02 23:31:48
【问题描述】:
好的,Google App Engine 有一个名为“Datastore”的功能。 我们从 Google 数据存储网站获得了下表:
Concept Datastore Relational database
Category of object Kind Table
One object Entity Row
Individual data for an object Property Field
Unique ID for an object Key Primary key
好的,假设我们得到了以下代码:
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Entity e1=new Entity("Person1");
e1.setProperty("First Name", "Tom");
e1.setProperty("Last Name", "Mary");
ds.put(e1);
Entity e2=new Entity("Person2");
e2.setProperty("First Name", "Brat");
e2.setProperty("Last Name", "Pit");
ds.put(e2);
我的问题是:
上述代码运行后Google Big Table会发生什么?
它会在大表中创建如下条目吗?:
Person1 {First Name: Tom}; {Last Name: Mary}
Person2 {First Name: Brat}; {Last Name: Pit}
Big Table 是不是像 Text file (.txt) 或类似的大表? & 当数据被插入到大表中时,它就像那个大表中的 1 个新条目?
好的,现在看“MyProject\war\WEB-INF\appengine-generated\local_db.bin”,我可以看到这张图片
如您所见,应用引擎存储数据的方式非常奇怪
【问题讨论】:
标签: google-app-engine google-cloud-datastore