Q
Problem solve Get help with specific problems with your technologies, process and projects.

Making a select statement faster

I have created a table, Party, and in it there are two main fields, party_code and party_name, and around 2,500 records are available in it. I passed a select statement to select party_name and party_code, but it is too slow in Oracle. What do I have to do to make it faster?

I have created a table, Party, and in it there are two main fields, party_code and party_name, and around 2,500 records are available in it. I passed a select statement to select party_name and party_code, but it is too slow in Oracle. What do I have to do to make it faster?

From a pure SQL standpoint, an INSERT statement must:

  1. Acquire an empty block to store the data (from the table's freelist).
  2. Insert and commit the data block.

There are two areas where you can improve Oracle SQL INSERT performance:

  1. Parallelize the inserts (if you have an SMP server).
  2. Use the APPEND hint to ensure that you get an empty data block by raising the high-water mark for the table.

Here is a good article on improving INSERT performance.

Dig Deeper on Oracle and SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close