• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

spring jdbc - performance issue.

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I've implemented a REST service using spring REST + spring jdbc , unfortunately each service call is taking 20+seconds for creating one record into 1parent and 9 child tables.

when i looked into the java logs , I noticed below part of JDBC call is taking more time for loading metadata.

DEBUG o.s.j.c.m.TableMetaDataProvider - Retrieving metadata for null/MY-SCHEMA/MY-TABLE.

I've already tried <SimpleJDBCInsert>.compile() method.

Any thoughts regarding this is much appreciated.

Regards,
Vijay
 
vdammala vkumar
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I replaced SimpleJDBCInsert with JdbcTemplate and seen 95% improvement in perfomance.

It takes 1.x secs for inserting data into 9tables.
reply
    Bookmark Topic Watch Topic
  • New Topic