Re: query execution time

From: preetika tyagi <preetikatyagi(at)gmail(dot)com>
To: Vibhor Kumar <vibhor(dot)kumar(at)enterprisedb(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: query execution time
Date: 2011-03-21 15:55:23
Message-ID: AANLkTi=qu2L4YXnfvBPF2C5ZX8gCDfMTkfZgMd1mgwye@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-students

Thank you, Vibhor!

I am wondering if caching will make such a big difference. For example, if A
is 15 minutes, then B is 1.5 hrs.
What could be other factors in case database server is separated from
clients (on different computer systems)?

Preetika

On Mon, Mar 21, 2011 at 2:48 AM, Vibhor Kumar <vibhor(dot)kumar(at)enterprisedb(dot)com
> wrote:

>
> On Mar 21, 2011, at 10:42 AM, preetika tyagi wrote:
>
> > Query: INSERT INTO table1 SELECT * FROM table2.
> > Execution Time: A ms.
> >
> > Query: INSERT INTO table1 SELECT * FROM table2.
> > Execution Time: B ms
>
> If session is same, then
> B < A if the data is cached due to execution of first statement.
> B > A, if the there is any change happened Or Any session has evicted the
> cached data.
>
> Thanks & Regards,
> Vibhor Kumar
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
> vibhor(dot)kumar(at)enterprisedb(dot)com
> Blog:http://vibhork.blogspot.com
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2011-03-21 16:06:34 Re: query execution time
Previous Message Davenport, Julie 2011-03-21 15:16:57 Re: query taking much longer since Postgres 8.4 upgrade

Browse pgsql-students by date

  From Date Subject
Next Message Scott Ribe 2011-03-21 16:06:34 Re: query execution time
Previous Message Zheng Yang 2011-03-21 12:17:09 foreign data wrappers