private static void warmUpPool(ODatabaseDocumentPool pool,String dbURL,String user,String password,int minSize){
  logger.trace("Warming up pool up to minSize {}",Integer.valueOf(minSize));
  List<ODatabaseDocumentTx> list=new ArrayList<ODatabaseDocumentTx>();
  for (int count=0; count < minSize; count++) {
    logger.trace("Warming up entry {}",Integer.valueOf(count));
    try {
      list.add(pool.acquire(dbURL,user,password));
    }
 catch (    Exception ex) {
      logger.warn("Issue in warming up db pool, entry {}",Integer.valueOf(count),ex);
    }
  }
  for (  ODatabaseDocumentTx entry : list) {
    try {
      if (entry != null) {
        entry.close();
      }
    }
 catch (    Exception ex) {
      logger.warn("Issue in connection close during warming up db pool, entry {}",entry,ex);
    }
  }
}

private static void warmUpPool ( ODatabaseDocumentPool pool , String dbURL , String user , String password , int minSize ) { logger . trace ( "Warming up pool up to minSize {}" , Integer . valueOf ( minSize ) ) ; List < ODatabaseDocumentTx > list = new ArrayList < ODatabaseDocumentTx > ( ) ; for ( int count = 0 ; count < minSize ; count ++ ) { logger . trace ( "Warming up entry {}" , Integer . valueOf ( count ) ) ; try { list . add ( pool . acquire ( dbURL , user , password ) ) ; } catch ( Exception ex ) { logger . warn ( "Issue in warming up db pool, entry {}" , Integer . valueOf ( count ) , ex ) ; } } for ( ODatabaseDocumentTx entry : list ) { try { if ( entry != null ) { entry . close ( ) ; } } catch ( Exception ex ) { logger . warn ( "Issue in connection close during warming up db pool, entry {}" , entry , ex ) ; } } }
ensure the min size pool entries are initilized . cuts down on some ( small ) initial latency with lazy init do not call with a min past the real pool max , it will block .
