Esempio n. 1
0
  public synchronized <A> long insert(A obj, Serializer<A> serializer) throws IOException {
    checkIfClosed();

    long recid = _recman.insert(obj, serializer);

    // DONT use cache for inserts, it usually hurts performance on batch inserts
    //        if(_softCache) synchronized(_softHash) {
    //        	_softHash.put(recid, new SoftCacheEntry(recid, obj, serializer,_refQueue));
    //        }else {
    //        	cachePut(  recid , obj, serializer, false );
    //        }
    return recid;
  }