Spring Jdbc binding java.sql.timestamp to oracle date issue -


I am currently using the NamedParameterJdbcTemplate of Spring so that some values ​​are inserted into a SQL When I am injecting two java.sql.Timestamp values ​​in SQL, which is the Orkel column type DATE and executes, I am having performance issues I

It is extremely slow (about 4 minutes), but when I run it through a SQL developer, it is implemented in less than one because I have that code There is an index on the column. Here is a snippet of my debug log: Tess * Determine * Select * from * test_loom where events & gt; =: Startups and Events & lt; =: Endadet and Logename =: Login and Channel Ind =: Channel Ent 2014 -04-21 15:02:50 48416 [http-8080-1] DEBUG org.springframework.jdbc.core.JdbcTemplate- Executed Ready SQL Query 2014- 04-21 15:02:50 48417 [http-8080-1] DEBUG org.springframework.jdbc.core.JdbcTemplate - Perform the finished SQL statement [select from test_table.test_column * where events & gt; =? More events & lt; =? And loginname =? And channel ind =?] 2014-04-21 15:02:50 48417 [http-8080-1] DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Getting JDBC connection from Datasource 2014-04-21 15:02 : 50 48438 [http-8080-1] DEBUG org.springframework.jdbc.core.StatementCreatorUtils - Setting the SQL statement parameter value: column index 1, parameter value [2014-04-21 12: 02: 38.0], value class [ java.sql Timestamp], SQL Type 93 2014-04-21 15:02:50 48439 [HT-8080-1] DEBUG org.springframework.jdbc.core.StatementCreatorUtils - Setting the SQL Statement parameter value: column index 2, parameter value [2014 - 04-22 00: 00: 00.0], value class [java.sql.Timestamp], SQL type 93 2014-04-21 15:02:50 48439 [http-8080-1] DEBUG org.springframework.jdbc.core Statement Curators - Setting the SQL statement parameter value: column index 3, parameter value [MY_LOGIN], value class [java.lang.String], SQL type unknown 2014-04-21 15:02:50 48439 [http-8080-1] DEBUG org.springframework.jdbc.core.StatementCreatorUtils - Ss L Setting statement Rametr value column index 4, parameter values ​​[WEB], values ​​class [java.lang.String], SQL type unknown

is I'm missing here? Is Oracle using values ​​of a TIMESTAMP , which results in the result of losing the index to "Events" DATE column?

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -