oracle - performance issue with getting clob object as a string with java ResultSet -


i trying fetach clob object oracle db java application. clob object contains xml data. performance implication me consuming around 3 minutes of time process. if xml content becomes more, processing time reaching beyond accepted time intervels.

is there other alternative xml content(clob object) db no performance issues? using oracle 10g.

instead of storing xml in form of clob, can try using oracle xml db. check out more details @ : http://www.oracle.com/technetwork/database-features/xmldb/overview/index.html.

using xml db using directly run queries on xml data, dont need bring whole of data in java layer time improve performance.

edit:

if xml db not option need make changes java implementation. based on question can see size of clob causing delay in fetching data. start background thread can load data in cache [you can create simple cache based on map] , instead of going db can check in cache first. can reduce time considerably you.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -