On Thu, 22 Dec 2016 at 20:33 Gregory Mace <macegh...@gmail.com> wrote:

> 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're even measure the time to register the classes.
How many classes are there in the package?
Can you measure only the pool creation?
Or at least take two measures, pool creation and class registration


-- 
Best regards,

Roberto Franchini

OrientDB LTD  -  http://orientdb.com

-- 

--- 
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.

Reply via email to