Re: query execution time - Mailing list pgsql-students

From Selena Deckelmann
Subject Re: query execution time
Date
Msg-id AANLkTi=bDEO0a==rCX+JBmEKV541C2=53gEPnu_gQxJi@mail.gmail.com
Whole thread Raw
In response to query execution time  (preetika tyagi <preetikatyagi@gmail.com>)
List pgsql-students
Hi!

This mailing list is for GSoC students to discuss their proposals.

Please direct your question to pgsql-general@postgresql.org.

-selena

On Sun, Mar 20, 2011 at 9:59 PM, preetika tyagi <preetikatyagi@gmail.com> wrote:
> Hi,
> I am wondering if someone can help me understand the following query
> execution behavior:
> I have two similar tables and table2 consists of 5000000 records.
> Query: INSERT INTO table1 SELECT * FROM table2.
> Execution Time: A ms.
> Query: INSERT INTO table1 SELECT * FROM table2.
> Execution Time: B ms.
> Sometimes B >> A (B is very larger than A). Both queries are same and run
> twice. What could be the reason that the same query is taking very long
> sometime?
> Thanks a lot!
>



--
http://chesnok.com

pgsql-students by date:

Previous
From: preetika tyagi
Date:
Subject: query execution time
Next
From: Zheng Yang
Date:
Subject: foreign data wrappers