Re: [GENERAL] Update takes longer than expected

2012-01-10 Thread Alban Hertroys
On 10 January 2012 15:46, Jerry Sievers wrote: >> We're trying to migrate the app from mysql to pg and this is one of >> the performance bottle-necks.  Unfortunately it slows down every >> request by about 5 seconds. That's a delay that could be due to DNS problems or other network issues. It may

Re: [GENERAL] Update takes longer than expected

2012-01-10 Thread Jerry Sievers
Andy Chambers writes: > Hi, > > I have an update that takes longer than expected and wondered if > there's an easy way to make it go faster. > > It's pretty simple:- > > create table session ( > id serial primary key, > data text); > > update session > set data = 'ipsum lorem...' > where

Re: [GENERAL] Update takes longer than expected

2012-01-09 Thread Andy Chambers
On Mon, Jan 9, 2012 at 4:30 PM, Tom Lane wrote: Sorry. Forgot to hit "Reply to All" Aha. I think I'd gotten carried away with some of the settings in order to optimize for bulk loading. Reverting back to the default postgresql.conf gets me back to the sort of times you guys are seeing here.

Re: [GENERAL] Update takes longer than expected

2012-01-09 Thread John R Pierce
On 01/09/12 1:03 PM, Andy Chambers wrote: I have an update that takes longer than expected and wondered if there's an easy way to make it go faster. It's pretty simple:- create table session ( id serial primary key, data text); update session set data = 'ipsum lorem...' where id =

Re: [GENERAL] Update takes longer than expected

2012-01-09 Thread Tom Lane
Andy Chambers writes: > I have an update that takes longer than expected and wondered if > there's an easy way to make it go faster. > It's pretty simple:- > create table session ( > id serial primary key, > data text); > update session > set data = 'ipsum lorem...' > where id = 5; > T

Re: [GENERAL] Update takes longer than expected

2012-01-09 Thread Bill Moran
In response to Andy Chambers : > > I have an update that takes longer than expected and wondered if > there's an easy way to make it go faster. > > It's pretty simple:- > > create table session ( > id serial primary key, > data text); > > update session > set data = 'ipsum lorem...' > w

[GENERAL] Update takes longer than expected

2012-01-09 Thread Andy Chambers
Hi, I have an update that takes longer than expected and wondered if there's an easy way to make it go faster. It's pretty simple:- create table session ( id serial primary key, data text); update session set data = 'ipsum lorem...' where id = 5; The "ipsum lorem.." stuff is an encrypt