4 Replies Latest reply: Aug 10, 2011 11:11 AM by alwu-Oracle RSS

    Java- PreparedStatement Vs Jena-QueryExecutionFactory/QueryFactory

    880207
      PreparedStatement pstmt = connection.prepareStatement(sqlString);

      Vs

      QueryExecution qe = QueryExecutionFactory.create(SPARQL_QUERY, model);

      Which is better in performance PreparedStatement or QueryExecutionFactory? As there is no class called
      PreparedStatement in Jena. I mean we have sqlstatement as precompiled when we used PreparedStatement in java,
      is it same with Jena?