cost 215 ms
在開發過程中重新加載 python 查詢模塊的最佳方法是什么?

[英]What's the best way to reload python query module during development?

我正在為 Memgraph 開發我的第一個查詢模塊。 我試圖找到最好的方法。 我有一個依賴於本地子模塊( firstone )的查詢模塊: 如果我理解正確,如果firstone模塊發生變化,程序仍然使用以前的代碼。 如何在開發過程中重新加載 Python 查詢模塊? ...

2023-02-01 12:25:23   1   9    memgraphdb  
Memgraph 是否支持復合索引?

[英]Are composite indexes supported in Memgraph?

我可以為任何給定的 label 在多個屬性上創建索引嗎? 我正在運行如下查詢: 我想知道我是否可以創建多個屬性索引,如果不能,是否有查詢匹配多個屬性的節點的好方法? ...

2023-02-01 09:14:33   1   6    memgraphdb  
將包添加到 memgraph 轉換

[英]Adding packages to memgraph transformation

我正在 python 中編寫 memgraph 轉換。 當我導入諸如“requests”或 .networkx 之類的模塊時,轉換會按預期進行。 我有帶有模式注冊表的 avro 數據,所以我需要反序列化它。 我在這里遵循了 memgraph 示例: https://memgraph.com/docs ...

時間類型的問題,例如 wShortest 聚合的持續時間 function

[英]Problems with temporal types like duration in of the wShortest aggregate function

我有 Memgraph v2.0,似乎像持續時間這樣的時間類型不能成為 wShortest 聚合 function 的一部分。這是我的代碼: 這是wShortest查詢: 我得到的錯誤是Error: Query failed: Calculated weight must be numeric, ...

2023-01-30 19:08:40   1   10    memgraphdb  
如何從遠程位置導入 CSV 文件 (LOAD CSV)?

[英]How to import CSV file (LOAD CSV) from a remote location?

我的 CSV 數據存儲在可以通過 inte.net 訪問的服務器上。 訪問該文件不需要授權。 目前,我使用scp和一些 crone 作業將該文件復制到我的 Memgrpah 服務器。 然后我使用LOAD CSV導入數據。 有沒有辦法做類似LOAD CSV FROM "https://my-serv ...

2023-01-30 14:15:39   1   8    memgraphdb  
Memgraph 是否支持子查詢?

[英]Are subqueries supported in Memgraph?

我正在使用 Memgraph Platform 2.6.4,我想在查詢中調用子查詢。 例如: 我在 Memgraph 文檔中找不到類似的內容,但在Cypher 最佳實踐博客文章中看到了它。 有沒有辦法在 Memgraph 中運行子查詢? ...

2023-01-30 13:04:04   1   6    memgraphdb  
嘗試在 WSL 上的 Ubuntu 下運行 Memgraph 時出錯:“系統尚未使用 systemd 作為初始系統 (PID 1) 啟動。無法運行。”

[英]Error when trying to run Memgraph under Ubuntu on WSL: "System has not been booted with systemd as init system (PID 1). Can't operate."

我的設置是 Windows 11 with WSL2 和 Ubuntu 22.04.1 LTS (GNU/Linux 5.15.79.1-microsoft-standard-WSL2 x86_64)。 我按照 說明在 Ubuntu 上安裝 Memgraph,但我一直收到錯誤消息: 我已經嘗試了通 ...

2023-01-27 08:45:30   1   7    memgraphdb  
我可以傳遞 mgp.ProcCtx 並在 Python 中實現使用實際圖的並行圖算法嗎?

[英]Can I pass around mgp.ProcCtx and implement parallel graph algorithms in Python that use the actual graph?

我正在使用包含 MAGE 1.5.1 的 Memgraph Platform 2.6.4。 我注意到 MAGE 的代碼中有一個有趣的部分告訴我您可以在服務器上使用多處理。 但是,我可以繞過mgp.ProcCtx並在 Python 中實現使用實際圖形的並行圖形算法,還是我需要像本例中那樣處理圖形表示 ...

2023-01-26 09:26:34   1   8    memgraphdb  
Memgraph 中是否有與 Neo4j 中的 APOC 相同的 function?

[英]Is there something in Memgraph that has the same function as APOC in Neo4j?

我知道 Memgraph 和 Neo4j 都使用 Cypher 作為查詢語言。 我看到 Neo4j 有 APOC(Awesome Procedures on Cypher)。 是否有 Memgraph 版本或 APOC 的替代版本? 我查看了 Memgraph 文檔,但找不到這方面的信息。 ...

2023-01-26 09:14:12   1   26    memgraphdb  
從 Neo4j 數據庫中的所有節點中刪除屬性

[英]Remove property from all nodes in a Neo4j database

我繼承了一個 Neo4j 數據庫,至少可以說這個數據庫很大。 我一直在研究它並注意到我們在每個未使用的節點中存儲了一個大字符串。 假設我們有幾百萬個名為Post的節點,每個Post都有Text 。 我想從整個數據庫中的每個Post中刪除Text 。 有人可以通過 Cypher 指出我這樣做的途徑嗎? ...

我可以為所有節點批量刪除一個節點屬性嗎?

[英]Can I bulk delete one node property for all nodes?

我得到的數據 model 具有三個節點,這些節點與三個關系相連。 這是我的數據 model 通過查看 model,為每個國家存儲 2 個和 3 個字母的代碼對我來說毫無意義,因此我想刪除國家/地區的所有 2 個字母的 ISO 代碼。 我嘗試運行以下代碼,但沒有返回。 我應該怎么辦? 有替代方法嗎? ...

如何獲取與一種節點類型相關的所有屬性?

[英]How can I get all of the properties related to one node type?

我有一個節點國家。 我知道這個節點有一些屬性,但我不知道是哪個。 我的意思是,我知道,因為我看過 model。這是我在文檔中找到的內容: 我知道如果我跑 我會得到一個特定屬性的結果。 是否有一個查詢會返回類似的結果: name, iso_2_code, iso_3_code, region, su ...

Neo4j 獲取多個連接節點的查詢

[英]Neo4j query for getting multiple connected nodes

在我的圖中,我想獲得某個節點的一級、二級和三級鄰居。 如果我的圖是A -> B -> C -> D -> E ,那么 C 的一級鄰居是 B C 的二級鄰居是 A C 的三級鄰居為無檢查鄰居時,我 go 在邊緣的反方向。 為了獲取這些節點,我編寫了以下查詢。 我意識到此代碼 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM