Hi, Look at: http://orientdb.com/docs/last/Concepts.html#database
Maybe we should copy this information around docs too. Best Regards, Luca Garulli Founder & CEO OrientDB <http://t.sidekickopen36.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XYg3MhRp0VdV39R8qSMPYW5vw6HK56dLWCf96gZDg02?t=http%3A%2F%2Forientdb.com%2F&si=6613501067132928&pi=496b25ae-5590-4bd4-c90c-68c1b9cfc1cf> On 7 February 2016 at 02:12, Tai Hu <[email protected]> wrote: > Luca, > It worked! Could you tell me why that is the case? I did not see > anywhere in OrientDB document suggest to use $ instead of / for connection > URL. Also our project has been using "/" since last year never had any > problem until now I am trying to add this new switch function. > > Thanks, > > Tai > > On Saturday, February 6, 2016 at 6:19:19 PM UTC-5, l.garulli wrote: >> >> Hi, >> You can use $ as separator. Try: >> >> project1$orientdb_data >> project2$orientdb_data >> >> Best Regards, >> >> Luca Garulli >> Founder & CEO >> OrientDB >> <http://t.sidekickopen36.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XYg3MhRp0VdV39R8qSMPYW5vw6HK56dLWCf96gZDg02?t=http%3A%2F%2Forientdb.com%2F&si=6613501067132928&pi=ca6291b0-8ae1-4dc0-f0a0-5993126afd9c> >> >> >> On 6 February 2016 at 18:36, Tai Hu <[email protected]> wrote: >> >>> Hi, >>> I am implementing an application which is using an embedded >>> OrientDB. Based on our requirement, each project in my application has its >>> own folder (with its own local OrientDB database). Inside of app, we allow >>> user to switch to different project. I tried the following code >>> >>> Folder structure >>> >>> project1/orientdb_data >>> project2/orientdb_data >>> >>> >>> In code, >>> public static OrientGraphFactory getFactory(String projectPath) { >>> if (factory == null) >>> factory = new OrientGraphFactory("plocal:" + >>> projectPath); >>> >>> return factory; >>> } >>> >>> >>> public static void switchProject(String projectPath) { >>> if (factory != null) { >>> factory.close(); >>> factory = null; >>> } >>> } >>> >>> Please do not worry about thread safe issue, I already took care of it >>> in the actual code. The problem here is if factory is initialized to use >>> "project1/orientdb_data", later on I created a new OrientGraphFactory with >>> "project1/orientdb_data". There is no error reported, but >>> OrientGraphFactory is still using "project1/orientdb_data". I am on >>> OrientDB 2.2.beta >>> >>> Thanks. >>> >>> -- >>> >>> --- >>> 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. >>> >> >> -- > > --- > 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. > -- --- 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.
