Questions tagged [xodus]

Xodus is a transactional schema-less embedded database written in pure Java and Kotlin.

Xodus is a transactional schema-less embedded database that is written in Java and Kotlin. It offers MVCC and snapshot isolation. It was initially developed for JetBrains YouTrack. It is also used in JetBrains Hub and in some internal JetBrains projects.

105 questions
2
votes
1 answer

Is there some default sorting by Xodus getAll()?

Is there some default sorting, when using getAll() method by Xodus Entity Stores? EntityIterable entities = txn.getAll("User"); It seems that, it's sorted by EntityId so by creation order...can one rely on it?
Jiri F.
  • 31
  • 2
2
votes
1 answer

Mixing stores in same Xodus Environment

Would it be possible to use a PersistentEntityStore and one or more plain Store instances in the same Environment instance? I was hoping to use transactions that cover changes on such a combination. I see potential conflicts with store names that I…
wolpers
  • 121
  • 1
  • 5
2
votes
1 answer

How it is possiblle to flush to disk a transaction programmatically using Xodus?

I m trying to flush to disk a transaction without to set in the configuration durable write. It is possible to command to flush just for a specific transaction?
user6228847
1
vote
0 answers

Implementing a distributed transaction is it theoretically possible?

I want to ask a theoretical question. Is it theoretically possible to implement a distributed transaction for Xodus Database? If yes, what are the theoretical steps to make it work? If not, then what are the reasons why it can't be implemented?
Fireburn
  • 981
  • 6
  • 20
1
vote
1 answer

How long is a xodus cursor valid?

I am using xodus from Clojure and was evaluating the possibilities to iterate through all key/value pairs in a lazy fashion, like it is common in Clojure. My initial understanding was that all data access via a Cursor should happen inside of a…
mat
  • 13
  • 3
1
vote
0 answers

jetbrains.exodus.ExodusException: Unsupported Comparable value type

When trying to persist a ComparableSet with a custom Comparable type, LocalDayTimeRange: ComparableSet timeRanges = new ComparableSet<>(); LocalDayTimeRange sundayRange = new LocalDayTimeRange( LocalDayTimeRange.DAY.SUNDAY, …
quarks
  • 33,478
  • 73
  • 290
  • 513
1
vote
1 answer

Creating a EntityIterable from multiple Entity objects

I'm trying to implement a "nearby" filter with Xodus, having this code: AtomicReference referenceToScope = ...; PropertyNearbyCondition propertyNearbyCondition = (PropertyNearbyCondition) entityCondition; String propertyName =…
quarks
  • 33,478
  • 73
  • 290
  • 513
1
vote
1 answer

What is the "subIterable" method for a Xodus property?

I have this custom property type: public class EmbeddedEntityIterable implements Serializable, ByteIterable { @NotNull @Override public ByteIterable subIterable(int offset, int length) { return null; } @Override public int…
Fireburn
  • 981
  • 6
  • 20
1
vote
1 answer

Xodus Entity Store: Finding properties that contain a value

I do understand that Xodus' Entity Store provides StoreTransaction.find(..) which matches properties with the exact provided value and StoreTransaction.findStartingWith(..) which matches properties beginning with the provided value. What I don't see…
Hannes
  • 5,002
  • 8
  • 31
  • 60
1
vote
0 answers

Xodus: InvalidSettingException

When running my application outside of IntelliJ I get an jetbrains.exodus.InvalidSettingException: Unknown DataReaderWriterProvider: jetbrains.exodus.InvalidSettingException: Unknown DataReaderWriterProvider:…
Hannes
  • 5,002
  • 8
  • 31
  • 60
1
vote
1 answer

Hacking Xodus file storage mechanism to deploy to Heroku or Openshift

What are the consequences (or issues that I might face) if I try to hack Xodus File I/O, as such I will use ByteBuddy to replace all access to Java File I/O and that Xodus will actually "persist" to that interface instead of the disk I/O, since I…
Questionaut
  • 89
  • 1
  • 6
1
vote
2 answers

Can Xodus Entity Stores share a transaction?

I can see it is possible to use a single Environment transaction to work on multiple stores. (I'm also assuming writes are possible too). The high level api of Entity Stores is very convenient for me, but I could not find a way of sharing Entity…
mahonya
  • 9,247
  • 7
  • 39
  • 68
1
vote
1 answer

Xodus - Restore Environment / directory from Backup

This is how we backup Xodus: PersistentEntityStore store = manager.getPersistentEntityStore(xodusRoot, appId); final File backupFile = CompressBackupUtil.backup(store, new File(store.getLocation(), "backups"), null, true); Using this ZIP file what…
quarks
  • 33,478
  • 73
  • 290
  • 513
1
vote
1 answer

Multiple Xodus app to access/share single directory

According to the comment from this post "I have xodus directory I wan to share between two applications.. But one with read /write access and other with read-only access.. Is the any other way to create Environment apart from …
quarks
  • 33,478
  • 73
  • 290
  • 513
1
vote
1 answer

CompressBackupUtil does not backup blobs

I have this code Environment env = manager.getEnvironment(xodusRoot, appId); final File backupFile = CompressBackupUtil.backup(env, new File(env.getLocation(), "backups"), null, true); Representation representation = new…
quarks
  • 33,478
  • 73
  • 290
  • 513