0 votes
asked in MicroStream for Java by (240 points)
I have two separate object graphs and no objects from one graph reference objects from the other graph and visa versa.

Is it better to have two separate databases, and the graphs can be in different directories or the two object graphs are in the same database directory, but if so, can they be controlled so one object graph is written to one channel and the other object graph to another channel.

Is it possible to name and control channels in this way?

1 Answer

0 votes
answered by (9.7k points)

If you do not need to store your object graphs in separate locations, you can simply create a root object that references both graphs. This way you can handle both graphs with one Microstream instance. This is also the solution I would suggest for most use cases.

Otherwise you can also create independent Microstream instances for each object graph.

Controlling the channel, a graph gets written to is not possible.

best regards
Notes: Every question must be a separate forum post. Headline: Formulate your question shortly and precisely. Thank you!
Powered by Question2Answer