Re: performance tuning in large function / transaction

From: MindTerm <mindterm(at)yahoo(dot)com>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: performance tuning in large function / transaction
Date: 2001-12-18 09:34:49
Message-ID: 20011218093449.24448.qmail@web20207.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dear Stephan,

Yes, you are correct. After implementment of your
suggestion, the execution time was half of original
one ( 4 minutes -> 2 minutes ) . Then, I made some
other modifications, execution was about one minute.

The execution time of this type of operation was 3-4
times longer as compare to oracle. :(

M.T.

--- Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
wrote:
> On Mon, 17 Dec 2001, MindTerm wrote:
>
> > select count(*)
> > from ACL a, APPLICATION app
> > where ACL_APP = app.app_id
> > and APP_INSTALLED = 'Y'
> > and ACL_LEVEL > 0
> > and ACL_GALLERY_ID = 1
> > and app.APP_GALLERY_ID = 1
> > and substr(app.app_order,1, 6 ) =
> '021101'
> > and app.app_order <> '021101'
> > and exists
> > (select u.ug_id
> > from user_group u,
> user_group_master
> > ug
> > where a.ACL_GRP = u.ug_id
> > and u.ug_user_id = 5170
> > and ug.ug_id = u.ug_id
> > and (ug.deleted = 'N' or
> ug.deleted
> > IS NULL)
> > and u.gallery_id = 1
> > and ug.gallery_id = 1 );
>
> I don't know if it'll help, but does:
>
> select count(*)
> from ACL a, APPLICATION app, user_group u,
> user_group_master ug
> where ACL_APP = app.app_id
> and APP_INSTALLED = 'Y'
> and ACL_LEVEL > 0
> and ACL_GALLERY_ID = 1
> and app.APP_GALLERY_ID = 1
> and substr(app.app_order,1, 6 ) =
> '021101'
> and app.app_order <> '021101'
> and a.ACL_GRP = u.ug_id
> and u.ug_user_id = 5170
> and ug.ug_id = u.ug_id
> and (ug.deleted = 'N' or
> ug.deleted
> IS NULL)
> and u.gallery_id = 1
> and ug.gallery_id = 1;
>
> give the same results as the original query. Maybe
> that form will work faster. (I'm going to play with
> it a little tomorrow, but since I don't have much
> data
> in there, I'm not sure how well it'll translate)
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
> (send "unregister YourEmailAddressHere" to
majordomo(at)postgresql(dot)org)

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Johnny Jørgensen 2001-12-18 11:50:21 Constructing a backup routine
Previous Message Stephan Szabo 2001-12-18 07:50:15 Re: performance tuning in large function / transaction