[英]Gremlin with Neptune: How to handle Vertex ID updates?
案件: 客戶頂點~Id在某些情況下需要更新。 在以下情況下,使用新頂點 ID更新頂點~id的推薦方法是什么? 這可能使用UPSERT還是我最好刪除舊頂點然后創建一個新頂點並將新頂點 ID分配為〜id ? 我們有 2000 萬個 Vertex,其中大約 2% 將屬於這個用例。 客戶頂點更新 ~編號新 ...
[英]Gremlin with Neptune: How to handle Vertex ID updates?
案件: 客戶頂點~Id在某些情況下需要更新。 在以下情況下,使用新頂點 ID更新頂點~id的推薦方法是什么? 這可能使用UPSERT還是我最好刪除舊頂點然后創建一個新頂點並將新頂點 ID分配為〜id ? 我們有 2000 萬個 Vertex,其中大約 2% 將屬於這個用例。 客戶頂點更新 ~編號新 ...
[英]Gremlin load data format
我很難理解 Gremlin 數據加載格式(用於 Amazon Neptune)。 假設我有一個包含以下列的 CSV: date_order_created customer_no order_no zip_code item_id item_short_description Gremlin 加載 ...
[英]Gremlin union query takes long time to execute against Neptune DB
當您使用 union 子句運行時,以下 Gremlin 查詢需要很長時間。 這是許多頁面都在使用的常見搜索查詢。 如果您在節點較少的實體上使用它,它會很好地工作。 但是,如果您使用它來搜索具有更多節點的實體,它會從 UI 超時(30 秒后)。 我必須使用包含,因為它在用戶開始輸入時進行搜索(4 個字 ...
[英]Conditional execution in a Gremlin query
有沒有一種方法可以根據查詢外部的數據,而不是基於圖形,有條件地執行部分 gremlin 查詢。 我使用的是 Go、Gremlingo 驅動程序和 AWS Neptune。 我已經能夠從我的代碼中做到這一點,但它並不那么漂亮。 我是這樣做的。 如果我可以向 gremlin.GraphTraversal ...
[英]Error creating graph in Neptune using Gremlin from Go
我正在使用 Gremlin 創建/更新(更新插入)圖表。 我正在使用 Go、Gremlin go 驅動程序 Gremlingo 和圖形數據庫 AWS Neptune。 我從 Neptune 返回以下錯誤: 在執行以下查詢時。 我不確定哪里出了問題,也無法完全解釋錯誤消息。 任何人都可以看到我的查詢有 ...
[英]Upserting multiple vertices in Gremlin from Go
我已經編寫了以下 Go 代碼來更新 Go 中的頂點數組。首先,代碼沒有效果。 它不會出錯,它只是不執行更新。 其次,這是使用 Gremlin 更新一批頂點的最有效方法嗎? 這是使用 tinkerpop Go 驅動程序 gremlingo。 ...
[英]How do you add the degree to every vertex in a list in Gremlin using python?
我正在嘗試將度數(連接到給定頂點的頂點數)添加到列表中的每個頂點。 為每個頂點生成度數 -c.g.V(ids).as_('vertex'). \ both(). \ groupCount(). \ by(select('vertex')).toList() 將恆定的度數保存到所有這些 ...
[英]Using times() ends in ResponseException "The repeat()-traversal was not defined"
我在 Java 中使用 Tinkerpop 3.6.1。如果 startVertex 和 targetVertex 之間沒有連接,我會收到超時異常。 為了防止這種情況,根據https://tinkerpop.apache.org/docs/current/reference/#repeat-ste ...
[英]TinkerGraph g.V(ids).drop().iterate() is confusingly slow
使用普通的舊 TinkerGraph 刪除中等大小的頂點時遇到問題。 總共有大約 1250 個頂點和 2500 條邊將被丟棄。 運行以下命令時: gV(ids).drop().iterate() 大約需要 20-30 秒。 這看起來很荒謬,我似乎已經證實它不是由節點移除以外的任何原因引起的。 我希望 ...
[英]Gremlin get elementMap() for vertices and valueMap() for edges when used with .bothE().otherV().path()
假設我們想要檢索某個特定頂點的所有傳入和傳出邊,並且結果包括 from_vertex、edge 和 to_vertex。 以下應該給我們結果。g.V(1).bothE().otherV().path() ==>path[v[...], e[...][...-...->...], v[. ...
[英]Create a group vertex for each group, and create outgoing edges to the group vertices
我有一個 gremlin 查詢,它根據兩個屬性對頂點進行分組 它返回映射到組中頂點列表的每個組的列表 我如何:對於每個組,創建一個頂點,該頂點的出邊到該組中的所有頂點,並將新的組頂點屬性設置為相同例如,對於上面的例子,我會創建兩個新的頂點。 Group Vertex 1 的 'favorite_b ...
[英]Apache Tinkerpop gremlin-go driver Next() on AddE returns 'E0903: there are no results left'
創建新邊並返回下一個結果時 gremlin-go 中的潛在錯誤。 在為以下內容創建 JIRA 錯誤票之前,我只想確定,這不是用戶錯誤/我的錯。 用於與 JanusGraph (0.6.2) 連接和交互的 Apache Tinkerpop gremlin-go 版本:github.com/apach ...
[英]gremlin.net how to create vertex/edge with id
我正在使用最新的 gremlin.net (3.6.1) 和 .NET 6。我正在嘗試創建頂點/邊,並為它們分配現有的 id,而不是讓服務器為它們創建 id。 在 gremlin 控制台中,這可以通過 g.addV('part').property(id, '59578') 來完成。 但是在 C# ...
[英]Gremlin query with where has syntax error
我正在使用 gremlin 控制台,我有以下查詢: gV().hasLabel("Account").where(in("Account").hasLabel("Opportunity").count().is(2)) 它應該查詢所有標記為“帳戶”的頂點,其中有 2 個以上的邊來自標記為“機會”的頂 ...
[英]Gremlin filter one query's output based on another query
我有兩個 gremlin 查詢。 我想根據另一個查詢的結果過濾掉一個查詢的output。 例如, 查詢 1: gV().hasLabel('Person').values('name')給出以下 output - John, Sam, Rocky 查詢 2: gV().hasLabel('Frie ...
[英]Getting values of a path with two different edges
我正在尋找一種模式。 我正在處理這個查詢: 我得到了這個: 但是我覺得有一個額外的步驟[]是錯誤的方法。 它還遍歷了該派系中的所有人口,而不僅僅是我想要的人口。 我想要的是列表中的位置,人口,派系,物種的每條記錄。 或者,換句話說,對於那個位置的每個人口,我想要那個人口,它是派系,它是物種。 ...
[英]What is the gremlin query for sorting by putting empty values at the bottom
我試圖在 Gremlin 查詢中找到以下 SQL 查詢的等效項。 select * from test.test_table order by alias = '', alias asc, name asc; 上面的查詢通過將空行放在底部來根據升序進行排序。 在 Gremlin 查詢中,我嘗試編寫 ...
[英]ClientConnectorError: Cannot connect to host <host>:8182 ssl:default [Connect call failed ('<ip-address>', 8182)]
剛剛嘗試下面提到的代碼來檢查我的 Amazon Neptune 服務,它拋出了這個錯誤: 有人知道解決方案嗎? 謝謝 ...
[英]CSV to Neptune bulk format
是否有任何 API(由 Neptune 或其他方式提供)將表格 CSV 文件(Neo4j 導入支持的文件)轉換為 Neptune Bulk CSV 格式(gremlin 或 openCypher),而不是為每個用例行編寫 python 行? 我曾嘗試編寫 python 代碼行來這樣做,但我希望有一個 ...
[英]How does Edge Index differ from Relation Index in janusGraph or are they the same?
我對 janusgraph 很陌生,正在為我的圖表編制索引。 通過這個過程,我發現我們可以像索引頂點一樣索引邊。 僅供參考:我正在使用混合彈性搜索索引頂點這是我從文檔中遵循的腳本 從上面的腳本中,這里我有一個包含屬性“type”的邊“has_reported”。 執行完上面的腳本后,我的邊緣“已注 ...