
[英]URLSafe datastore key for Google Cloud Datastore Entity
我正在尝试获取 Google Cloud Datastore 实体的“URL 安全密钥”。 根据文档 - https://support.google.com/cloud/answer/6361641?hl=en - Google Cloud Datastore 客户端应该有一个 function ...
[英]URLSafe datastore key for Google Cloud Datastore Entity
我正在尝试获取 Google Cloud Datastore 实体的“URL 安全密钥”。 根据文档 - https://support.google.com/cloud/answer/6361641?hl=en - Google Cloud Datastore 客户端应该有一个 function ...
[英]Datastore GQL: Distinct + Count query
我有一个这种格式的 Google Datastore 表: 我想数一数我在每个国家/地区有多少注册人员。 计数聚合和不同之间的组合。 预计 output: 我正在寻找基于 GQL 的解决方案。 感谢帮助。 ...
[英]GCP Datastore Node Library: Proper format for an object containing an array of long strings?
我有以下形式的 JavaScript object:const data = { title: "short string", descriptions: [ "Really long string...", "Really long string..." ] } 长 ...
[英]Not able to serialize the Python 2 objects from Python 3x
我们需要将整体式 GAE 应用程序升级到 Python 3.7 运行时。 目前我们正在序列化 Python 2 个对象并存储在数据存储区(Google App Engine NDB 客户端)中,并尝试将它们检索为 Python 3 个对象。 但是,我们无法从 Python 3.7 运行时访问数据存储 ...
[英]Json loading error using Apache beam on Vertex AI
我正在尝试使用Vertex AI笔记本中的Apache beam将数据从数据存储加载到bigquery 。 这是加载发生的代码部分-from apache_beam.io.gcp.datastore.v1new.datastoreio import ReadFromDatastore import ...
[英]How to build a proper schema on Datastore and fetch it out
目前在我的公司,我们有一个非常膨胀的数据库日志表 (MySQL),有很多行,我试图将它导出到数据存储以使其更轻,但我不知道什么是最好的结构/模式,因为这个是我第一次使用 Datastore。 作为此处的附加上下文,该项目构建于 PHP 和 Laravel。 我脑海中的模式是这样的: 所以jobs是我 ...
[英]Is there a way to run the Datastore Emulator in Cloud Build?
每次将 PR 提交到我存储库中的特定分支时,我都会尝试在 Cloud Build 中运行一些 Go 单元测试。 问题是我的单元测试依赖于与 Datastore Emulator 1的连接。 这是我在运行单元测试之前如何设置模拟器的示例。 我有一个*_test.go文件, init为 functio ...
[英]Query values in multiple document using "IN" in gcp datastore
我在 gcp 数据存储中有以下文档: 将节点 sdk 用于 gcp 数据存储我想使用键查询用户: Key(["User", 1]) & Key(["User", 2]) 我正在使用以下查询: 使用以下代码运行上述查询: 我收到以下错误: 但是密钥已经包含“用户”类型。 ...
[英]Can the Google Cloud Datastore query results iterator be made to run faster (preferably, parallelized with chunked queries)?
我正在使用Java API来运行查询。 而且我知道datastore.run()返回的QueryResults object 使用延迟加载迭代器,因此在检索大量结果时迭代所有结果的时间相当长。 对于可能进行分页的大多数操作,我已经在使用Cursor ,并且在这些情况下可以解决该问题。 每当我提前知 ...
[英]Does gcp firestore in datastore mode support OR query?
考虑 GCP 数据存储中的以下数据: 我想获取用户 jacob 的所有关系,因为我需要在运行数据存储查询时使用某种OR逻辑在user1_id和user2_id两列中查询 jacob 的 ID,但我无法找到任何包含所需示例的文档OR查询。 这在一个查询中是否可能,否则我将不得不使用列user1_id ...
[英]Will running a keys only query in a transaction slow down reads of that entity elsewhere in the application?
在我的数据库 model 中,我有一个非常频繁读取但根本不经常写入的实体。 只有写入发生在事务中。 我有一个运行仅键查询的端点,以检查事务中是否存在该实体。 这个端点经常被调用。 我的问题是,由于我上面的端点,我的实体的非事务读取是否会在我的应用程序的其他地方变慢? 我读到经常运行读取/写入某个实 ...
[英]Why does dev_appserver.py exit without throwing errors?
我正在尝试使用 AppEngine 和 Datastore 运行一个简单的 python 2 服务器代码。 当我运行dev_appserver.py app.yaml时,程序在以下输出后立即退出(没有错误): 理想情况下,它应该通过在端口 8000 上运行服务器来继续。此外,它可以使用选项--su ...
[英]Separate or merged indices for index.yaml with GAE
我用 Python GAE 做这样的查询: 我最好使用两个单独的索引: 或者使用涵盖两者的单个索引: 我怀疑前者更好但想检查一下。 ===== 对于投票关闭为“基于意见”的人来说,上述两个选项将改变索引大小,也可能改变查询响应速度。 绝对不是基于意见。 有一个正确的答案。 ...
[英]Connect to Google Cloud Datastore using dev_appserver.py & google.golang.org/appengine@v1.6.6
正如标题所说。 我们有一个遗留的 Go 1.11 AppEngine API 需要运行dev_appserver.py 。 简单地说,我希望appengine.Main()和appengine.NewContext(r)允许我的应用程序使用我的project-id指向我的 Cloud Datasto ...
[英]Connect Java Google AppEngine Local Standard Server to Cloud DB | appengine-api-1.0-sdk-1.9.84.jar | IntelliJ & Cloud Code
EDIT2:我设法克服了GlobalDatastoreConfig has already been set错误。 我设法查明了在init function 之前被调用的所有位置。它们在一些奇怪的文件中的 static 空间中。 我现在已将 ALL DatastoreServiceFactory. ...
[英]Loading data from a file in GCS to GCP firestore
我编写了一个脚本,它循环遍历文件中的每条记录并写入 firestore 集合。 Firestore 架构 {COLLECTION.DOCUMENT.SUBCOLLECTION.DOCUMENT.SUBCOLLECTION} 在下面的行中读取文件 转换为字符串列表 但是,此作业需要数小时才能完成 ...
[英]google.api_core.exceptions.FailedPrecondition: 400 no matching index found
我需要使用 python 从谷歌云数据存储中获取数据,当获取所有集合时它成功,但是当尝试根据失败的键获取特定值时,我提供了存储数据方法和获取数据方法: 这意味着,如果我取消提交该行: 会得到这个错误: 响应返回:内部服务器错误。 怎么解决这个问题? 我试图从谷歌云页面的用户界面添加索引——将索引添加 ...
[英]What is an updated index configuration of Google Firestore in Datastore mode?
自 2022 年 11 月 8 日 16 点 UTC 以来,我们有时会收到以下 DatastoreException 代码:UNAVAILABLE,以及消息: 我想获得某种实体的所有密钥。 这些与新的cursor一起分批返回。当使用cursor获取下一批时,会出现上述错误。 我希望查询不会这么快超 ...
[英]Export GCP Datastore schema for collection
有没有办法为数据存储区中的实体导出命名空间 + 种类的模式? 如果我们将来更改它,我想存储它以便能够跟踪添加到数据存储区的数据的模式。 还是我必须手动处理? ...
[英]Build failed: could not resolve source: googleapi: Error 403: Unknown service account showing up in error message
Build failed: could not resolve source: googleapi: Error 403: 909263763911@cloudbuild.gserviceaccount.com does not have storage.objects.get access to ...