![](/img/trans.png)
[英]How long is a xodus cursor valid?
我正在使用來自 Clojure 的 xodus,並且正在評估以惰性方式遍歷所有鍵/值對的可能性,就像它在 Clojure 中很常見一樣。 我最初的理解是,所有通過Cursor進行的數據訪問都應該發生在只讀Transaction內部,因為每個事務都在自己的數據庫快照上運行。 但是,如果您在事務中創建 ...
[英]How long is a xodus cursor valid?
我正在使用來自 Clojure 的 xodus,並且正在評估以惰性方式遍歷所有鍵/值對的可能性,就像它在 Clojure 中很常見一樣。 我最初的理解是,所有通過Cursor進行的數據訪問都應該發生在只讀Transaction內部,因為每個事務都在自己的數據庫快照上運行。 但是,如果您在事務中創建 ...
[英]Xodus: How to open earlier states of the db
據我了解,Xodus 數據庫將事務附加到其日志文件中,而 full.xd 文件不再更改,因此日志文件成為事務歷史記錄的一種。 有沒有辦法讀出過去的交易和/或在早期的 state 中打開數據庫? ...
[英]Using database cursor instead of skip and limit
我不確定此 Xodus 票證中定義的 Cursor 是否是典型的數據庫 cursor,但有沒有辦法使用 Xodus 支持數據庫游標? 例如,可以使用 cursor 代替正常的跳過/限制方法來恢復檢索結果。 有沒有辦法使用 cursor 而不是 Xodus 的跳過和限制? ...
[英]Possible to use a data folder on NFS?
這似乎是我發現的最可靠的進程內數據存儲。 我在本地嘗試了一些東西(sig kill、sig term、 System.exit()等在事務中間),xodus 可以從它最后一個好的 state 所在的位置恢復。 我很想知道 xodus 是否支持通過 NFS 存儲數據(使用 NFS 文件夾作為環境)? ...
[英]Save a list in a property in an entity in xodus
我還沒有找到如何在實體的屬性中保存基本類型的一般列表,例如整數或字符串。 我可能錯過了一些明顯的東西...... https://github.com/JetBrains/xodus/wiki/Entity-Stores描述“只有 Java 原始類型、字符串和 ComparableSet 值可以默 ...
[英]No transaction started in current thread error
我有這段代碼需要索引一個文檔: @Override public Boolean index(String dir, String entityId, Double longitude, Double latitude) throws Exception { if (write ...
[英]How to use Exodus Directory with Lucene?
我有這個簡單的 Lucene 代碼: Directory dir = FSDirectory.open(Paths.get("C:/temp/Lucene")); Analyzer analyzer = new StandardAnalyzer(); IndexWriterConfig iwc = ...
[英]StackOverflowError at jetbrains.exodus.entitystore.EntityIterableCache.putIfNotCached
我的代碼拋出以下錯誤: 它並沒有准確指出我的代碼中的哪個地方是根本原因,但我知道在我的代碼中我有這個: EntityIterable tempEntities = txn.findWithProp(entityType, propertyName); tempEntities.forEach(e ...
[英]Creating a EntityIterable from multiple Entity objects
我正在嘗試使用 Xodus 實現“附近”過濾器,具有以下代碼: AtomicReference<EntityIterable> referenceToScope = ...; PropertyNearbyCondition propertyNearbyCondition = (Prope ...
[英]Find a comparable value inside an array property within an Entity
您如何查找作為數組的屬性是否包含值,默認情況下 Xodus 可用的是txn.find(entityType, propertyName, comparableValue)來查找值,但是,查找數組的最佳方法是什么屬性包含一個值。 假設我有這個: 其中我需要比較給定的值(例如“cat”)是否在數組內 ...
[英]What is the "subIterable" method for a Xodus property?
我有這個自定義屬性類型: Xodus 如何使用subIterable和compareTo ? 僅在@NotNull方法上返回 NULL 值是否安全? 這個EmbeddedEntityIterable基本上是一個Map<String,Comparable>引擎蓋下的,它也是一個非常嵌 ...
[英]Check active Transactions within a Xodus environment?
檢查 Xodus 環境中是否存在活動事務的方法是什么? 所以如果你有這個: Environment environment = environmentCache.get(databasePath); 您如何知道此環境中是否存在活動事務? ...
[英]Xodus Entity Store: Finding properties that contain a value
我知道 Xodus 的實體商店提供StoreTransaction.find(..)匹配屬性與提供的確切值和StoreTransaction.findStartingWith(..)匹配以提供的值開頭的屬性。 我沒有看到StoreTransaction.findContains(..)或任何類型的 ...
[英]EntityStoreException: Unsupported property type id 9
使用 Xodus 版本1.3.124並且數據庫拋出: 盡管該財產已注冊: 這個屬性最初是用以下方式保存的: 這里可能有什么問題? ...
[英]Solution to remove lock after Application server redeployment
在重新部署應用程序戰爭之前,我從環境路徑之一檢查了 xd.lck 文件: 我正在從 Nginx Unit 和 Payara 服務器進行測試,以消除這是 Unit 孤立情況的可能性。 進程20578從htop顯示: 重新部署成功完成后,訪問 Web 應用程序會拋出: 並檢查相同的xd.l ...
[英]InstanceAlreadyExistsException: jetbrains.exodus.entitystore: type=EntityStoreConfig
什么會導致拋出這個異常? 從這個代碼: ...
[英]Removing lock on non-graceful application shutdown
與此問題相關: 在每個事務結束時取消對環境的鎖定以及Jetbrains YouTrack 服務器如何過載? 可以做些什么來實現 Xodus 鎖定機制即使在應用程序非正常關閉的情況下也能正常工作的方法? 例如,如果應用程序進程(打開了對 Xodus 環境的寫訪問權限)被kill ed,鎖仍然存在,並 ...
[英]How does Jetbrains YouTrack server scales over load?
如果 Youtrack 使用 Xodus 作為底層數據庫,那么 YouTrack 如何處理可擴展性? Xodus 寫鎖系統會阻止使用數據庫構建的應用程序的可擴展性(請參閱: 在每個事務結束時刪除環境鎖和https://youtrack.jetbrains.com/issue/XD-807 ) 在 ...
[英]some questions about xodus
喲。 我有一些關於 xodus 的問題。 如果我使用 getProperty 從實體獲取某些東西,我是從 memory 獲取它還是從數據庫中讀取? 如果來自數據庫,是否有打開某些緩存系統的內置功能? 我可以像在普通數據類中一樣直接在實體上工作嗎? 我應該用一些額外的中間層覆蓋它們嗎? 為什么yout ...