Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I wonder if you can imagine, or have had the experience of the application guys people calling with anger and panic in their voices saying, "The database is so slow, you've got to speed it up."

...

Let's take a look at how it would work with DB Optimizer.

Image Modified

We can clearly see that the database is not bottlenecked and there must be a problem on the application.

...

Doing single row inserts and committing after each is very inefficient. There is a lot of time wasted on network communication which is why the database is mainly idle. When the application thinks it's running full speed ahead, it is actually waiting mainly on network communication and commits. If we commit less and batch the work we send to the database, reducing network communications, we will run much more efficiently. Changing Change the code to: 

begin

for i in 1..1000 loop insert into foo values
('a');
–commit;
end loop;
end;

/
commit;

This change improves the communication delay and now we get a fully loaded database but we run into database configuration issues.


-ignoreLegal
Scroll Ignore
scroll-pdf
true
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
Newtabfooter
aliasIDERA
urlhttp://www.idera.com
 | 
Newtabfooter
aliasProducts
urlhttps://www.idera.com/productssolutions/sqlserver
 
Newtabfooter
aliasPurchase
urlhttps://www.idera.com/buynow/onlinestore
 | 
Newtabfooter
aliasSupport
urlhttps://idera.secure.force.com/
 | 
Newtabfooter
aliasCommunity
urlhttp://community.idera.com
 
|
 
Newtabfooter
aliasResources
urlhttp://www.idera.com/resourcecentral
 | 
Newtabfooter
aliasAbout Us
urlhttp://www.idera.com/about/aboutus
 
Newtabfooter
aliasLegal
urlhttps://www.idera.com/legal/termsofuse
Automate SQL tuning and profiling with DB Optimizer. Learn more > >
IDERA WebsiteProductsPurchaseSupportCommunityAbout UsResources