I'm using this code:
String orientUrlFormat = "remote:%s/%s"; try { long start = Calendar.getInstance().getTimeInMillis(); String url = String.format(orientUrlFormat, host, db); oPartitionedDatabasePool = new OPartitionedDatabasePool(url, username, password); OObjectDatabaseTx db = new OObjectDatabaseTx(oPartitionedDatabasePool.acquire()); // REGISTER THE CLASS ONLY ONCE AFTER THE DB POOL IS CREATED db.getEntityManager().registerEntityClasses("com.blablabla.domain"); long end = Calendar.getInstance().getTimeInMillis(); System.out.println("creating Database Pool tool : "+(end-start)+" milliseconds"); initialized = true; } catch (Exception e ) { ... and the result: creating Database Pool tool : 18341 milliseconds the database is on the localhost. It seems quick enough after the pool is created. -- --- 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 orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.