IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Different reason for that, I believe
When I was learning PL/SQL I read that one of the disadvantages was that the PostgreSQL optimizer couldn't read into the functions. So putting all the logic into a larger query gave the optimizer more chances to build a query plan, whereas using a function removed the options.
===

Implicitly condoning stupidity since 2001.
New We did testing...
Multiple function calls in loops, etc.

While there may have been a query plan issue at some point with packages, I doubt that's the case any longer. Everyone, but everyone, says to put your DML in a function.

BTW, did you mean the Oracle optimizer...? ;-)
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New D'oh!
Oh yeah, real PL/SQL. I was just using those books because they were better than the online docs for PL/pgSQL.
===

Implicitly condoning stupidity since 2001.
New ROFL.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     Question about programming with functions. - (static) - (47)
         Code that's called once... - (admin) - (21)
             What he said, with more detail - (drewk) - (20)
                 Re: What he said, with more detail - (deSitter) - (2)
                     Uhh, HTML *is* structured - (drewk) - (1)
                         HTML not a page definition language - (deSitter)
                 What he said, and what he before him said ... - (JimWeirich) - (15)
                     Someone confirm/deny what I was told - (drewk) - (13)
                         Depends on the language - (admin) - (7)
                             Re: Depends on the language - (deSitter) - (2)
                                 Sounds more like FORTRAN - (tuberculosis) - (1)
                                     Yes, very FORTRANish - (admin)
                             Different reason for that, I believe - (drewk) - (3)
                                 We did testing... - (admin) - (2)
                                     D'oh! - (drewk) - (1)
                                         ROFL. -NT - (admin)
                         I have a 1GHz laptop - (tuberculosis) - (1)
                             Or better yet - (Arkadiy)
                         Re: Someone confirm/deny what I was told - (JimWeirich) - (1)
                             Yeah that guy gets around! - (tuberculosis)
                         Puh-LEEEEZE! - (jb4)
                     How big a block? - (static)
                 Pascal has one up on PHP - (tablizer)
         Re: inline PHP code and HTML - (tuberculosis) - (18)
             Copy and Paste vs Functions. - (static) - (17)
                 Nothing wrong with 12 4-5 line functions - (admin)
                 Typical size of a method in Smalltalk is probably 4-5 lines - (tuberculosis) - (15)
                     Um. Yabut. - (FuManChu) - (14)
                         I was wondering how to say that. :-) - (static) - (13)
                             I'm going for fairly strict layout/form/content separation - (FuManChu)
                             Do I smell another "OO is better abstraction" war brewing? - (tablizer) - (11)
                                 That is a fault of history OF the current language. - (FuManChu) - (4)
                                     So you reject a language because - (tablizer) - (3)
                                         Not at all. - (FuManChu) - (2)
                                             not very nice wording, if you ask me - (tablizer) - (1)
                                                 Then you might have guessed I wasn't trying to be diplomatic -NT - (FuManChu)
                                 Not unless you're spoiling for a fight. -NT - (static) - (1)
                                     No, fighting the spOOilings -NT - (tablizer)
                                 Hey Bryce... - (ChrisR) - (3)
                                     Perhaps - (tablizer) - (2)
                                         I've read way too many Oracle books lately - (ChrisR) - (1)
                                             thanks for the quote -NT - (tablizer)
         Re: Question about programming with functions. - (JayMehaffey)
         Code as a Communications Tool - (gdaustin)
         Code for readability - (broomberg) - (3)
             Profiling and optimizing. - (static) - (2)
                 Difficult to optimize the algorithm after the fact - (broomberg) - (1)
                     Yes, I know. - (static)

Know what's better than being born on third base? Being born in the owner's box.
80 ms