180 words

Is there an update on running ObjectDB purely in-memory?

#1
2015-10-09 09:23

Hi,

I know that this has been asked, but the last time seems to be two years ago, so I'd like to know whether there is a change or an outlook regarding the topic:

Is it possible, or planned, to run ObjectDB purely in-memory, without a any file on disk? Note that "file on RAM disk", which was proposed in the past, is not an option for the application I have in mind. It would need to be true in-memory mode, as supported by SQL databases like H2 or SQLite.

Thanks,
David

dbb
dbb's picture
Joined on 2015-10-08
User Post #1
#2
2015-10-12 13:59

We had this as an unreleased feature for a while, and following your post it is now included in version 2.6.4.

In the configuration you can define suffixes that indicate memory only databases:

    <database>
      <extensions drop="temp,tmp" memory="mem,memory" />
    </database>

Any database url or path with one of these specified suffixes will be handled as a memory database, e.g.:

    EntityManagerFactory emf =
        Persistence.createEntityManagerFactory("objectdb:test.mem");

The exact path (as long as it is ended with such suffix) has no real effect except in logging, etc.

Since this is a new feature we will appreciate any feedback.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,317

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel