On Tue, Apr 20, 2010 at 01:17:02PM -0500, Kevin Grittner wrote:
- David Kerr <d...@mr-paradox.net> wrote:
-  
- > Incidentally the code is written to work like this :
- > 
- > while (read X lines in file){
- > Process those lines.
- > write lines to DB.
- > }
-  
- Unless you're selecting from multiple database tables in one query,
- effective_cache_size shouldn't make any difference.  There's
- probably some other reason for the difference.
-  
- A couple wild shots in the dark:
-  
- Any chance the source files were cached the second time, but not the
- first?
-  
- Do you have a large checkpoint_segments setting, and did the second
- run without a new initdb?
-  
- -Kevin

no i don't think the files would be cached the 2nd time. I ran it multiple times
and got the same performance each time. It wasn't until i changed the parameter
that performance got better.

I've got checkpoint_segments = 300

Dave

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

Reply via email to