cost 540 ms
Python 連接到 OrientDB

[英]Python connection to OrientDB

我正在嘗試使用 pyorient 連接到 orientdb,但收到以下錯誤... 我使用這樣的示例代碼: 我嘗試了以下解決方案: https://github.com/orientechnologies/pyorient/issues/27#issuecomment-647029817 但它沒有 ...

Orientdb python 列出數據庫?

[英]Orientdb python list databases?

我正在使用 Python 來獲取超過 30 天的數據庫列表。 到目前為止,我已經能夠從這里獲取數據庫列表。 這是我的代碼:- 如何調整代碼以獲取 30 天或更早的數據庫列表? 謝謝您的幫助。 ...

使用 pyorient 在 OrientDB 中存儲二進制文件

[英]Store binary file in OrientDB using pyorient

我正在嘗試在 OrientDB 中存儲一個二進制文件。 我正在使用 pyorient。 該文件可能很大(超過 50mb),除了將其十六進制存儲為需要很長時間存儲的字符串列表之外,我找不到其他方法。 有沒有一種方法可以以更優雅的方式完成並更快地完成? ...

OrientDB 查詢適用於 Studio 但不適用於 PyOrient

[英]OrientDB query works on Studio but not with PyOrient

這適用於 OrientDB Studio( eset是一個 EmbeddedSet): 但不是當我使用 PyOrient 時: 顯然它也發生在 Java: https : //community.orientdb.org/t/linkset-manipulation/171 有什么辦法可以 ...

在 OrientDB 類中存儲 LinkedSet 會拋出 Impossible to serialize invalid link #-1:-1

[英]Storing LinkedSet in OrientDB class throws Impossible to serialize invalid link #-1:-1

我正在嘗試使用 python 客戶端在 OrientDB 的頂點中插入一條記錄。 代碼如下 在控制台中我看到消息 這表明它已獲得正確項目的鏈接並正在執行插入。 但是 record_create 失敗了,我在 OrientDB 服務器控制台中得到以下異常 如果有人能指出我在這里做錯了什么,將不勝感激 ...

連接orient DB分布式服務器

[英]Connecting to orient DB distributed server

如何連接到 orientdb 中的分布式設置。 我有 3 個服務器集群設置和運行。 它們正在通信,並且可以從另一個獲得數據。 但是我如何在我的程序中作為一個集群連接到它們? 在 mongo 中有連接 URI : mongodb://[username:password@]host1[:port1] ...

在Django rest框架中將orientdb @rid作為參數傳遞給DELETE請求的正確方法是什么?

[英]What is the correctly way to pass an orientdb @rid as a parameter, to DELETE request in django rest framework?

我正在通過傳遞參數在DRF API中創建一個delete方法,但是我不知道如何正確傳遞orientdb @rid。 我在orientdb中有一個稱為“ worksat”的關系,在OrientDB Studio中,我可以看到結構名稱為#:的@rid,即:“#33:1”是workat關系記錄的 ...

在 django rest 框架中使用 orientdb OGM 刪除邊的正確方法是什么?

[英]What is the correctly way to delete edges with orientdb OGM in django rest framework?

我不知道如何使用 orientdb OGM 在 django rest 框架中創建一種刪除邊的方法。 我正在使用pyorient==1.5.5和OrientDB 3.0.18版本。 我有兩個頂點類: ousers , ocompany 。 另外我有兩個關系(邊緣)類: ofriends , ow ...

從已知頂點獲取連接的頂點詳細信息和邊詳細信息

[英]Getting connected vertex details and edge details from a known vertex

我已經在pyorient ogm中創建了類 如何與演員和制片人一起返回特定電影的所有詳細信息。 我應該打多個查詢以獲取電影,演員和制片人的詳細信息嗎? 從電影中選擇*,其中title ='Test' 從電影中選擇expand(ine())。in(),其中title ='Tes ...

Django + PyOrient:EC2中的db_create socket.timeout異常

[英]Django + PyOrient : db_create socket.timeout exception in EC2

我正在使用orientDB社區版本2.2.35和pyorient 1.5.5 。 啟動服務器后,該腳本在本地運行良好。 但是,當我在ec2機器上運行相同的代碼時,它將引發socket.timeout exception 。 我最初以為可能是CORS問題,但事實並非如此。 還 ...

獲取發火的OrientDb中的頂點或邊記錄?

[英]Getting vertex or edges records in pyrorient OrientDb?

我有一個頂點類Transformer,我想檢索它的記錄。 我正在做以下事情; 但是,此輸出; 因為此類具有一些屬性,例如名稱,origin_node,可以通過ABC[0].name檢索,但是我也想檢索其他記錄,這可能是其他類之間的邊緣。 我知道在Java中可以檢查它是頂點還是 ...

OrientDB:在pyorient中為兩個頂點類創建邊

[英]OrientDB: Creating Edges for two vertex classes in pyorient

我正在嘗試使用pyorient為兩個頂點類創建一條邊。 我這樣做的方式是; 頂點類和邊緣類創建成功,但是,我無法創建邊緣。 關於我在做什么錯的任何想法嗎? 我是否必須先添加頂點(如果是),然后如何在pyorient中添加頂點? ...

如何使用pyorient在OrientDB中以有序方式存儲邊緣

[英]How to store edges in an ordered way in OrientDB with pyorient

我想使用pyorient API以有序方式存儲邊緣。 根據過時的API頁面 ,有一些使用Java API的示例,例如 等效地在SQL中: 我想使用pyorient做同樣的事情,但是我看過的任何文檔都沒有暗示這是可能的。 ...

使用pyorient OGM查詢空字段

[英]querying null fields using pyorient OGM

我正在嘗試使用來自pyorient的OGM來匹配在某些字段中具有空值的記錄。 通過查看GitHub上的單元測試,我設法使大多數工作正常進行,但在那里或文檔中都找不到任何示例。 我在GitHub上也看不到任何問題,所以我想我只是以錯誤的方式來處理它。 pyOrient版本:1.5.5 ...

如何在Orientdb中有效地實現“如果不存在則創建”模式?

[英]How to implement efficiently the pattern “create if not exist” in Orientdb?

我想在Orientdb中插入唯一的對象,但是為了避免重復的對象,我先進行查詢,然后創建不存在的對象。 我要插入數十億個對象,這花費了很長時間。 如何避免插入重復對象並具有良好的性能? 這是我的代碼示例(順便說一句,我正在使用pyorient): ...

如何使用pyorient驅動程序建立與OrientDB分布式數據庫的遠程連接?

[英]How to a establish remote connection to OrientDB distributed db using pyorient driver?

Hej,我正在嘗試建立到我在數字海洋上的orientdb服務器的遠程連接。 但是,我嘗試通過以下方式進行連接: 我收到以下錯誤PyOrientConnectionPoolException: Server sent empty string 我正在運行pyorient v ...

如何從查詢中檢索@rid 值從 User where name = 'Nicole' 使用 pyorient

[英]how to retrieve the @rid value from a query select from User where name = 'Nicole' using pyorient

我還沒有弄清楚,如何使用 python 3.5 和 pyorient client.command 從記錄元數據中檢索@rid值來運行這樣的 SQL 查詢。 假設我在 pyorient 的client.command(query)中使用以下查詢創建了一個 User 類。 為簡單起見,此處僅顯示查詢 ...


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