Access different databases from the same process #456
Unanswered
Bios-Marcel
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi, The only pitfalls are lazy references. They are bound to one storage and can’t be serialized. But they can be unlinked if you need to store them to a different storage instance (load data behind the lazy before unlinking!). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to access different databases from the same JVM without causing any data corruption or runtime issues in either instance?
While https://docs.eclipsestore.io/manual/storage/faq/file-storage.html#_may_multiple_jvm_processes_access_the_same_eclipsestore_database already answers the opposite question, this one seems unanswered. I guess if there's an another here, it'd be nice to add this to the FAQ :)
The reason why I am not just trying this, is because I am afraid that static components such as the
LazyReferenceManagercould be causing issues here. Maybe there are also other static aspects that I am not aware of?As to why I want to do this: We have use eclipse serializer as a our export / import format. However, the problem is, that it is not stable. So we'd have to run our migration logic. However, we can't even get to the point where we can parse the data anymore, since the data structure has changed too much.
SO the idea would be to create a second instance, do a full backup, and reimport the full backup, on which we can than do a migration.
Beta Was this translation helpful? Give feedback.
All reactions