gpt4 book ai didi

google-app-engine - 如何在本地开发机器上模拟 (Google App Engine) High Replication 数据存储?

转载 作者:太空宇宙 更新时间:2023-11-03 15:19:47 25 4
gpt4 key购买 nike

我有一个 Django 应用程序,我正在尝试对多种类型的实体组执行事务。当我尝试在我的本地开发机器上对此进行测试时,出现此错误:

ERROR 2012-03-27 10:11:12,971 datastore.py:2480] Exception sending Rollback: Traceback (most recent call last): File "/usr/local/google_appengine/google/appengine/api/datastore.py", line 2475, in _DoOneTry File "/usr/local/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1984, in rollback File "/usr/local/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1999, in async_rollback File "/usr/local/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1928, in _end_transaction File "/usr/local/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1883, in transaction File "/usr/local/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 592, in get_result File "/usr/local/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1670, in __begin_transaction_hook File "/usr/local/google_appengine/google/appengine/datastore/datastore_rpc.py", line 1184, in check_rpc_success BadRequestError: transactions on multiple entity groups only allowed with the High Replication datastore

最好的解决方法是什么?

最佳答案

从命令行启动 Google App Engine 时使用 --high_replication。例如:

python /usr/local/bin/dev_appserver.py --datastore_path=/tmp/datastore app --port=9999 --high_replication

关于google-app-engine - 如何在本地开发机器上模拟 (Google App Engine) High Replication 数据存储?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9887528/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com