Geeks With Blogs

Tim Murphy

Tim is a Solutions Architect for PSC Group, LLC. He has been an IT consultant since 1999 specializing in Microsoft technologies. Along with running the Chicago Information Technology Architects Group and speaking on Microsoft and architecture topics he was also contributing author on "The Definitive Guide to the Microsoft Enterprise Library".

I review for the O'Reilly Blogger Review Program

Technorati Profile

Tim Murphy's .NET Software Architecture Blog Adventures in Architecting and Developing .NET

We have been having prolonged adventures with this wonderful data type on my current project.  We are storing XML data in a CLOB field.  In the beginning we used the Oracle ODP.NET provider.  When we got into performance testing we found that saving this data killed our performance.  A couple of the developers did some testing and found that the Microsoft Oracle provider worked at least an order of magnitude better.  I was a little skeptical about moving to the Microsoft provider because I remembered that certain database condition weren't reported very well, but time lines always win.

A short time later the client got a response from Oracle saying we should use a VarChar parameter to send data to a CLOB in the database.  We did some testing and it did perform well, but we figured we had changed enough data access code at this point that we would wait until a maintenance release to consider performing the change.

The system went into pilot and suddenly we started getting failures to insert into the table.  Again the developers did some research and found that any data over 32K would cause this condition.

The solution?  Go back to Oracle's suggestion.

The moral?  Take your medicine now.  It taste worse if you wait.

Posted on Thursday, April 13, 2006 5:26 PM Database , .NET | Back to top

Comments on this post: Fun with Oracle CLOBs

# re: Fun with Oracle CLOBs
Requesting Gravatar...
In our current project we had the same performance issue using the Oracle Data Provider for .NET and BLOBS. After digging into the problem I found a solution that is quite fast and does not have the limitation of 32k.

Perhaps it can help you to solve your problem too.

Left by Gerhard Stephan on Apr 26, 2006 6:37 AM

Your comment:
 (will show your gravatar)

Copyright © Tim Murphy | Powered by: | Join free