首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >创建bulkloader.yaml时创建的0个实体

创建bulkloader.yaml时创建的0个实体
EN

Stack Overflow用户
提问于 2013-11-13 22:08:47
回答 1查看 150关注 0票数 1

在创建运行以下命令的bulkloader.yaml时,要传输0个实体:

代码语言:javascript
复制
appengine create_bulkloader_config --filename=bulkloader.yaml --url=https://dev-dot-mysite.appengine.com/_ah/remote_api

在我的app.yaml中,我配置了_ah

代码语言:javascript
复制
- url: /_ah/remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin
  secure: always

- url: /.*
  script: ...

我得到了以下信息。

代码语言:javascript
复制
02:01 PM Creating bulkloader configuration.
[INFO    ] Logging to bulkloader-log-20131113.140100
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
Please enter login credentials for dev-dot-gmm-repros.googleplex.com
Email: ---
Password for ---: 
[INFO    ] Opening database: bulkloader-progress-20131113.140100.sql3
[INFO    ] Opening database: bulkloader-results-20131113.140100.sql3
[INFO    ] Connecting to dev-dot-mysite.appengine.com/_ah/remote_api
[INFO    ] Downloading kinds: ['__Stat_PropertyType_PropertyName_Kind__']
[INFO    ] Have 0 entities, 0 previously transferred
[INFO    ] 0 entities (8402 bytes) transferred in 101.2 seconds

当我打开bulkloader.yaml时,我看到:

代码语言:javascript
复制
# Autogenerated bulkloader.yaml file.
# You must edit this file before using it. TODO: Remove this line when done.
# At a minimum address the items marked with TODO:
#  * Fill in connector and connector_options
#  * Review the property_map.
#    - Ensure the 'external_name' matches the name of your CSV column,
#      XML tag, etc.
#    - Check that __key__ property is what you want. Its value will become
#      the key name on import, and on export the value will be the Key
#      object.  If you would like automatic key generation on import and
#      omitting the key on export, you can remove the entire __key__
#      property from the property map.

# If you have module(s) with your model classes, add them here. Also
# change the kind properties to model_class.
python_preamble:
- import: base64
- import: re
- import: google.appengine.ext.bulkload.transform
- import: google.appengine.ext.bulkload.bulkloader_wizard
- import: google.appengine.ext.db
- import: google.appengine.api.datastore
- import: google.appengine.api.users

transformers:

会有什么问题吗?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2014-01-19 14:26:37

容量加载器实体是从定期生成的“Datastore统计数据”中创建的。如果您查看您的应用程序管理控制台,它将有一个部分。如果不存在统计数据,则不会生成任何实体。

在dev-server上,您可以强制立即生成统计信息,但在生产中,我不确定是否有其他方法可以立即强制生成统计信息。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19965416

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档