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
0
votes
1 answer

How to check for combined uniqueness with Xodus DNQ

I have two entities; municipality and city. Municipalities are assumed to have unique names whereas cities are assumed to be unique within their municipality. Is there a way to set up a constraint for cities so that the combination of its name and…
Felix ZY
  • 674
  • 6
  • 14
0
votes
1 answer

Metadata for entity is undefined

I'm trying to connect two entities with an n:m relationship, bands and events. When an event is removed, the band should remain. The band may not be removed while part of an event however. The attached test case fails with the following log: …
Felix ZY
  • 674
  • 6
  • 14
0
votes
1 answer

Xodus producing a huge file when passing from key-value (Environment) to relational (Entity)

I originally created a key-value database with Xodus Entity that created a small, 2GB database: public static void main(String[] args) throws Exception{ if (args.length != 2){ throw new Exception("Argument missing. Current…
user8954282
0
votes
1 answer

Is there a way to "get" a property instead of "finding" it in Xodus?

I have two entities in Xodus. One is called SynsetID which has only one property: synsetID. Then I have Gloss, which has a property called gloss. One SynsetID may be linked to multiple glosses. I use the following code to populate the database: …
user8954282
0
votes
0 answers

Xodus Java: cannot find symbol PersistentEntityStores

I am trying to use Xodus but when I write this code: PersistentEntityStore store = PersistentEntityStores.newInstance("glosses-test"); final StoreTransaction txn = store.beginTransaction(); I get the following error: XodusTest.java:[28,39] cannot…
user8954282
0
votes
1 answer

How to import Xodus in Java?

I have added the dependency to my pom.xml: org.jetbrains.xodus xodus-openAPI 1.3.124
user8954282
0
votes
1 answer

Xodus VFS not able to persist bytes

The problem with the code below is that the VFS does not seem to be able to persist the byte array. As Xodus VFS writes zero byte: @Override public FileModel put( String appId, String namespace, String name, InputStream is) { final…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
0 answers

ExodusException: write not in progress

I'm having a bit of trouble with Xodus VFS, and the application is throwing this error: jetbrains.exodus.ExodusException: write not in progress at jetbrains.exodus.log.Log.ensureWriter(Log.kt:700) at…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Jetbrains xodus no more bytes available error

I'm using Exodus from Jetbrains as an embedded database in my application. Recently I've faced with some weird behavior, I'm afraid that the one of the stores is broken. At least I can't access it anymore. jetbrains.exodus.ExodusException:…
user12384512
  • 3,362
  • 10
  • 61
  • 97
0
votes
1 answer

Using a shared / mounted block storage with Xodus

Is it safe to use mounted block storage as the Xodus database path? The idea is to run the application that uses Xodus in several different hosts. So each Xodus-based application is pointing to the same mounted path (e.g /mnt/xodus) In this case,…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

How to reduce the memory usage by a writing transaction?

It seems like Xodus uses the amount of memory proportional to the size of writing transaction (correct me if I am wrong, please). So for big transactions it can become a problem, and for my application I have to chose much larger heap size "just in…
Mikhail Puzanov
  • 219
  • 1
  • 7
0
votes
2 answers

Circular Dependency for multinode module (Xodus)

After quite some trials, I find that it is not possible to use the multinode module at all. Since the multinode depends on entity-store module and vice versa. Thus including the multinode module into Gradle config of entity-store causes circular…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

What is the practical difference between flush and commit?

executeInTransaction calls flush, not commit. I did some testing and flush does persist changes to the database across program runs, which to me is the definition of commit. So what is the difference between these two operations? Put another way,…
0
votes
1 answer

A proper way to serialize/deserialize Xodus-dnq entity

For example - I've got this entity: class XdUser(entity: Entity) : XdEntity(entity) { var someName by xdStringProp() var someNumber by xdIntProp() } What is the proper way to serialize/deserialize it from/to json? I have to create data…
Rundom
  • 87
  • 1
  • 7
0
votes
1 answer

Xodus unique property key value

Is there a way to make a Entity property unique when storing using PersistentEntityStore? Such than any put operation with a duplicate property value would translate to a rollback or should not commit. Is this possible?
quarks
  • 33,478
  • 73
  • 290
  • 513