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

Non-exclusive Read access to Xodus

What is the best way to have read-only access a Xodus database (that is already open) that is without Xodus throwing lock error. The idea is two separate process is accessing the database, one process is with read/write and other is just read only.…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

How to delete Entity Type with Xodus?

Here's my code to delete all entities for a given type: @Override public boolean deleteEntities(String instance, final String storeName) { final boolean[] success = {false}; final PersistentEntityStore entityStore =…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

How to get property types of a given Entity type in Xodus?

Is there a way for Xodus API to check the type of property? Xodus have a method txn.getEntityTypes(); but I have not found a way to get the property types of a given Entity Type, is that possible?
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Is it safe not to close an Environment or EntityStore?

I want to ask if it's safe not to close an environment? final PersistentEntityStore entityStore = manager.getPersistentEntityStore(xodusRoot, instance); final List users = new LinkedList<>(); try { } finally { …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Storing null as value of Entity Property?

Since Entity store is throwing out when storing null value, I managed to get a "hack" to save a null value into it. However I am not sure if my approach is futile. Here's a snippet: entityStore.executeInTransaction(new…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Retrieve Entities based on logic

I have this code: EntityIterable iterable = null; if(authId== null) { iterable = txn.find(entityType, "publicRead", true).skip(skip).take(limit); } else { …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

How to get subset result from `txn.getAll("Entity")` method?

This is an example code to get list of Entities, example Users: final EntityIterable allUsers = txn.getAll("User); // returns million records for example for (Entity user: allUsers) { System.out.println(user.getProperty("fullName")); } My…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Is txn.commit() required with Xodus?

Here's my code: @Override public void updateUser(String instance, String storeName, final String userId, final String newUsername, final String newPassword) { if (storeName == null || storeName == null) { …
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Can both put and delete be transaction in Xodus?

Here's a batch method in our code: @Override public boolean batchPutDelete(String instance, final String storeName, final Map properties, final String... keys) { final Boolean[] isSuccess = {false}; final List keyList…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
1 answer

Deleting multiple keys -- can it be transactional?

Here is our code: @Override public boolean delete(String instance, final String storeName, String... keys) { final Boolean[] isSuccess = {false}; final List keyList = Arrays.asList(keys); final Environment env =…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
0 answers

Jetbrains xodus broken dependencies

Recently, I faced with some build errors in my project which is using JetBrains/xodus v1.2.3. In project's pom.xml I have such dependecy org.jetbrains.xodus xodus-environment
0
votes
1 answer

xodus write performance with parallel threads?

I'm attempting to use xodus as a store, because I want a store of that type, and the benchmarks make it out to be fast. However, in practice, the writes seem to be really slow. I'm setting up two stores with a pattern like this: environment =…
user2163960
  • 1,871
  • 19
  • 22
0
votes
1 answer

How to use xodus blobs in a multi-thread-scenario? And should they be closed?

First question: The documentation states that you should not close the InputStream that you retrieved by the getBlob method. The javadoc of this method states, that you should close it. Who is right? Second one: I'm using xodus in an "asynchronous…
Sebastian Schmitt
  • 433
  • 1
  • 5
  • 18
-1
votes
1 answer

some questions about xodus

yo! i have some questions about xodus. if i get something from entity using getProperty, do i take it from memory or read from database? if from database, is there a built-in ability to turn on some cache system? can i work directly on an entity…
-1
votes
1 answer

How to convert a ByteIterable into a String?

When I put a key, I use StringToEntry: store.put(txn, StringBinding.stringToEntry(key), StringBinding.stringToEntry(value)); and when I return it I get a ByteIterable: ByteIterable result = store2.get(txn2,…
user8954282
1 2 3 4 5 6
7