Using Oracle /*+ append */ and ColdFusion

To increase the performance of an insert into an Oracle database one can use the /*+ append */ hint while doing an insert. Actually, by using the append hint, you ensure that Oracle always grabs “fresh” data blocks by raising the high-water-mark for the table. The code for this would look like:

insert /*+ APPEND */ into ……….

So, it is obvious that one would use the same within a <cfquery> tag to also increase the performance of ones application. But today I learned the hard way (actually almost “wasted” 2 hours to find this out) that when using the hint Append like above one would also need to issue a “commit;” after this code, so that Oracle writes the data into the database finally.

This leaves us now with two options:

1. Use an additional <cfquery> with a commit (but not sure if this would really work….)
2. or then simply leave the append hint away from your code.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: ,

About Razuna

This is the official blog of the Open Source Digital Asset Management System - Razuna. Razuna is the incredible easy way to manage all your Digital Assets. As the Open Source Alternative to Digital Asset Management (DAM) System you can save up to 90% with Razuna compared to any proprietary System. By using Razuna you get the benefit of it being free and open source and supported by a professional company. There are many options to try out Razuna today! Either, download your own version, create a free account on our Razuna Hosted Platform or get your own Razuna Cloud Server.

No comments yet.

Leave a Reply

You must be logged in to post a comment.