Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Performance wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 3970 of 4424
Post > Topic >>

Performance with tem****ary table

by sam.mahindrakar@[EMAIL PROTECTED] ("samantha mahindrakar") Apr 7, 2008 at 02:27 PM

Hi
I have written a program that imputes(or rather corrects data) with in
my database.
Iam using a tem****ary table where in i put data from other partitoined
table. I then query this table to get the desired data.But the thing
is this tem****ary table has to be craeted for every record that i need
to correct and there are thousands of such records that need to be
corrected.
So the program necessarily creates a tem****ary table evrytime it has
to correct a record. However this table is dropeed after each record
is corrected.
The program works fine.....but it runs for a very long time....or it
runs for days.
Iam particularyly finding that it takes more time during this statement:

NOTICE:  theQuery in createtablevolumelane****st CREATE TEM****ARY TABLE
predictiontable(lane_id, measurement_start, speed,volume,occupancy) AS
SELECT lane_id, measurement_start, speed,volume,occupancy
FROM samantha.lane_data_I_495 WHERE
lane_id IN (1317) AND
measurement_start BETWEEN '2007-11-18 09:25:00' AND 2007-11-19 01:39:06'

Iam not sure if i can use a cursor to replicate the functionality of
the temp table. Is the performance bad because of the creation and
deletion of the temp table?


Thanks
Samantha

-- 
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 11 Posts in Topic:
Performance with temporary table
sam.mahindrakar@[EMAIL PR  2008-04-07 14:27:21 
Re: Performance with temporary table
dev@[EMAIL PROTECTED] (R  2008-04-08 16:50:43 
Re: Performance with temporary table
alvherre@[EMAIL PROTECTED  2008-04-08 12:17:45 
Re: Performance with temporary table
sam.mahindrakar@[EMAIL PR  2008-04-08 15:28:03 
Re: Performance with temporary table
alvherre@[EMAIL PROTECTED  2008-04-08 15:43:10 
Re: Performance with temporary table
valgog <valgog@[EMAIL   2008-04-09 03:44:19 
Re: Performance with temporary table
sam.mahindrakar@[EMAIL PR  2008-04-09 19:33:46 
Re: Performance with temporary table
sam.mahindrakar@[EMAIL PR  2008-04-09 19:41:18 
Re: Performance with temporary table
erik@[EMAIL PROTECTED] (  2008-04-09 21:31:54 
Re: Performance with temporary table
sam.mahindrakar@[EMAIL PR  2008-04-09 22:43:17 
Re: Performance with temporary table
valgog <valgog@[EMAIL   2008-04-10 07:58:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 8:19:58 CST 2008.