Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > SQL speed help needed....
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 25th April 10:07
karl & betty schendel
External User
 
Posts: 1
Default SQL speed help needed....



Did you create the session temp separately, or did you use
declare global temporary table ... as select?
The latter creates a compressed heap by default, which might be slowing
things down some (although an order of magnitude sounds like a lot).

I have to assume that the select returns more than just a few rows.
Maybe the DMF cache is too small and the temp table is spilling to
disk inefficiently.

We'll need more info on how many rows you're inserting and into what
storage structure before offering further ideas.

Karl
  Reply With Quote


 


2 25th April 10:07
chip nickolett
External User
 
Posts: 1
Default SQL speed help needed....



Hi Manny,

Are all inserts slow or just this one? Are you using RAID 5? How much
data is "some data" that is being inserted? A few rows, a few hundred
wide rows, or a few thousand rows? You could set log_trace and see how
much logging is being done. This would help show if there were many
pages being written, or if there were log waits.

You might also want to look at DM420 tracepoint data. A temporary
table will reside in the DMF cache while it can, but will force pages
to be written to disk if the cache is not sized large enough.

Just for grins you could run a lock_trace and see if it shows anything.
It's unlikely, but you never know.

There are many, many things that could cause this type of issue. One
of the first goals is to determine if the issue is systemic, or
isolated to a single process or event. From there just keep logically
digging until you find your answer.

BTW, we have a really good Ingres Performance Tuning course that covers
these and many other useful topics! :-) See
http://www.comp-soln.com/ingres.html for more information.

Best wishes.

Chip Nickolett (ChipN@Comp-Soln.com)

US - Comprehensive Solutions
www.Comp-Soln.com
UK - Comprehensive Solutions International, Ltd. www.Comp-Soln.co.uk
  Reply With Quote
3 27th April 14:27
manny
External User
 
Posts: 1
Default SQL speed help needed....


Thank you for your replies.

On this occasion the code has been changed completely and the original
query is not needed anymore.

Cheers,

Manny
  Reply With Quote
4 27th April 14:27
chip nickolett
External User
 
Posts: 1
Default SQL speed help needed....


Hi Manny,

Are all inserts slow or just this one? Are you using RAID 5? How much
data is "some data" that is being inserted? A few rows, a few hundred
wide rows, or a few thousand rows? You could set log_trace and see how
much logging is being done. This would help show if there were many
pages being written, or if there were log waits.

You might also want to look at DM420 tracepoint data. A temporary
table will reside in the DMF cache while it can, but will force pages
to be written to disk if the cache is not sized large enough.

Just for grins you could run a lock_trace and see if it shows anything.
It's unlikely, but you never know.

There are many, many things that could cause this type of issue. One
of the first goals is to determine if the issue is systemic, or
isolated to a single process or event. From there just keep logically
digging until you find your answer.

BTW, we have a really good Ingres Performance Tuning course that covers
these and many other useful topics! :-) See
http://www.comp-soln.com/ingres.html for more information.

Best wishes.

Chip Nickolett (ChipN@Comp-Soln.com)

US - Comprehensive Solutions
www.Comp-Soln.com
UK - Comprehensive Solutions International, Ltd. www.Comp-Soln.co.uk
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666