![](/img/trans.png)
[英]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 ...