in memory database is just that... in memory. so if you create some
vertices in a in memory DB and the program exits (as it does in your case)
the data WILL be lost. that's why you don't see the results from your
second program.
On Monday, July 27, 2015 at 11:15:41 AM UTC+5:30, Arpit Jain wrote:
>
> Hello Members,
>
> I am facing a problem while using orient db in memory storage mode,
> 1. while storing the data i am using this
> public static void main(String[] args) {
> OrientGraph graph = new OrientGraph("memory:myMemoryDB");
>
> try {
> Vertex v1 = graph.addVertex(null);
> v1.setProperty("name", "v1");
>
> ..............
> ..............
> .............
>
>
>
> } finally {
> g.shutdown();
> }}
>
>
> 2. But while fetching data from other class
>
> public static void main(String[] args) {
> OrientGraph graph = new OrientGraph("memory:myMemoryDB");
>
> try {
> for (Vertex v : graph.getVertices()) {
>
> System.out.println(" id>>>" + v.getId());
>
>
>
> } finally {
> g.shutdown();
> }}
>
>
> i am not getting any data, but this works in case of plocal.
>
> please help me to resolve this problem
>
> Regards:
> Arpit
>
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.