/** * Makes a certain Query go faster, using extra resources. The user should release * the resources later by calling releaseGoFaster on the same Query. Failure to release * resources may result in an overall degradation in performance. * * @param q the Query to speed up * @throws ObjectStoreException if something is wrong */ public void goFaster(Query q) throws ObjectStoreException { Connection c = null; try { c = getConnection(); goFasterWithConnection(q, c); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }
/** * Makes a certain Query go faster, using extra resources. The user should release * the resources later by calling releaseGoFaster on the same Query. Failure to release * resources may result in an overall degradation in performance. * * @param q the Query to speed up * @throws ObjectStoreException if something is wrong */ public void goFaster(Query q) throws ObjectStoreException { Connection c = null; try { c = getConnection(); goFasterWithConnection(q, c); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }