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

Xodus: Is there a maximum length of a key and/or value?

Is there a maximum length for the key and/or value ByteIterable in Xodus? If there is a hard limit, what is that limit (i.e. how many bytes)? And what will happen if a ByteIterable exceeds that limit?
Martin Häusler
  • 6,544
  • 8
  • 39
  • 66
4
votes
1 answer

Xodus virtual filesystem, which are the advantages

I've just discovered this promising storage engine, which is Xodus. Which are the use cases where Virtual File System mode should be preferred over a traditional File System? I've also seen the ExodusDirectory lucene implementation, how can it be…
riccardo.tasso
  • 978
  • 2
  • 10
  • 28
3
votes
1 answer

Implementing "Move" function with VFS

I'm trying to implement a wrapped "move" function with Xodus, but something is not working out right: @Override public boolean move(String appId, String name, String targetName) { final boolean[] success = new boolean[1]; final…
quarks
  • 33,478
  • 73
  • 290
  • 513
3
votes
2 answers

getLinks method returns deleted Entities, how to prevent it?

Below is my code to get the list of Entity's linked. It works but the problem is that even the deleted Entity is returned, although the Entity is already emptied out and it is the only property set. Is there a way to not return the deleted entities…
quarks
  • 33,478
  • 73
  • 290
  • 513
3
votes
0 answers

JetBrains xodus on android

did anyone try xodus on android and got it working? I am talking about: https://github.com/JetBrains/xodus Would love to get it working - but it seems to use some features that are not available on Android - wonder if there is a workaround to make…
ligi
  • 39,001
  • 44
  • 144
  • 244
3
votes
1 answer

How to register custom property type to xodus `PersistentEntityStore`

I'm working with xodus database and I want to store java.time.Instant as property of my model object (Diary) so I implemented InstantBinding. Next in repository object that I created to work with my Diary objects I registered InstantBindig in save…
mojtab23
  • 2,495
  • 5
  • 22
  • 31
2
votes
1 answer

Save a list in a property in an entity in xodus

I have not found how to save a general list of primitive types, e.g. ints, or strings, in a property of an entity. I might have missed something obvious... https://github.com/JetBrains/xodus/wiki/Entity-Stores described that "only Java primitive…
Vin
  • 559
  • 2
  • 18
2
votes
1 answer

Nested Cursors over two different Stores

I have following code: ... Transaction xodusTransaction = xodusEnvironment.beginReadonlyTransaction(); Store leftStore = xodusEnvironment.openStore(leftName, StoreConfig.USE_EXISTING, xodusTransaction, false); Store rightStore =…
Taras
  • 56
  • 4
2
votes
1 answer

How to trigger garbage collector to reduce database size?

We use Xodus for a remote probe project in order to store temporary data before sending them to the centralized database. Thus, we have several stores which can grow or decrease accordingly to the environment (traffic, network connection, etc...).…
ATU
  • 21
  • 2
2
votes
1 answer

What is the proper way of safely shutdown the Xodus environment?

I need a way shutting down the Xodus environment so that It waits for all the writing transactions in all threads to finish (or be aborted after a timeout as an option). It blocks starting new transactions (or throws an exception as an…
Mikhail Puzanov
  • 219
  • 1
  • 7
2
votes
0 answers

How to connect JetBrains Xodus to S3?

For JetBrains Xodus database, Is there a way to connect it to Amazon S3 or S3-compatible storage instead of local file system? Not sure if this is related but I can see hints of S3 from…
quarks
  • 33,478
  • 73
  • 290
  • 513
2
votes
1 answer

Store.putRight(..) and best practice for key selection

When using a Store by only appending data to the right, with constantly increasing key values of type Long, would it be best to query the Store's size using Store.count(..) before calling Store.putRight(..) every time and use that value as the next…
wolpers
  • 121
  • 1
  • 5
2
votes
1 answer

Filter getAll query results

This is how to limit the query of Entities using Xodus API: final EntityIterable allUsers = txn.getAll(storeName).skip(skip).take(limit); Question, say the entities stored in the database range from 100k to 500k records, is there a way to filter…
quarks
  • 33,478
  • 73
  • 290
  • 513
2
votes
2 answers

jetbrains.exodus.ExodusException: Can't acquire environment lock after 0 ms

We are using Xodus on a Servlet container, and from time to time the application throws this error (which we don't know what is the cause) jetbrains.exodus.ExodusException: Can't acquire environment lock after 0 ms. Lock owner info: null at…
quarks
  • 33,478
  • 73
  • 290
  • 513
2
votes
1 answer

How to repair corrupted integrity of a JetBrains Xodus database?

Background: Our YouTrack database got corrupted. The relevant bug report is here: https://youtrack.jetbrains.com/issue/JT-48235#comment=27-2952375 Now I'm trying to fix the corrupted state of the Xodus database that YouTrack uses…
Dons
  • 23
  • 2
1
2 3 4 5 6 7