Re: [PERFORM] LIKE query running slow

2003-09-24 Thread Shridhar Daithankar
Garrett Bladow wrote: Recently we upgraded the RAM in our server. After the install a LIKE query that used to take 5 seconds now takes 5 minutes. We have tried the usual suspects, VACUUM, ANALYZE and Re-indexing. Any thoughts on what might have happened? What all tuning you have done? Have you se

Re: [PERFORM] LIKE query running slow

2003-09-24 Thread Jeff
On Tue, 23 Sep 2003, Garrett Bladow wrote: > Recently we upgraded the RAM in our server. After the install a LIKE query that used > to take 5 seconds now takes 5 minutes. We have tried the usual suspects, VACUUM, > ANALYZE and Re-indexing. > > Any thoughts on what might have happened? > Did you

Re: [PERFORM] LIKE query running slow

2003-09-24 Thread Dennis Bjorklund
On Tue, 23 Sep 2003, Garrett Bladow wrote: > Recently we upgraded the RAM in our server. After the install a LIKE > query that used to take 5 seconds now takes 5 minutes. We have tried the > usual suspects, VACUUM, ANALYZE and Re-indexing. If you mean that you reinstalled postgresql then it's pro

[PERFORM] Performance issue

2003-09-24 Thread peter
Hello, I have been trying to get my Postgres database to do faster inserts. The environment is basically a single user situation. The part that I would like to speed up is when a User copys a Project. A Project consists of a number of Rooms(say 60). Each room contains a number of items. A proje

Re: [PERFORM] How to make n_distinct more accurate.

2003-09-24 Thread Nick Fankhauser
The performance list seemed to be off-line for a while, so I posed the same question on the admin list and Tom Lane has been helping in that forum. -Nick > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Nick > Fankhauser > Sent: Monday, September 22, 2

[PERFORM] Index problem

2003-09-24 Thread Rigmor Ukuhe
Hi, I have a table containing columns: "END_DATE" timestamptz NOT NULL "REO_ID" int4 NOT NULL and i am indexed "REO_ID" coulumn. I have a query: select "REO_ID", "END_DATE" from "PRIORITY_STATISTICS" where "REO_ID" IN ('112851' ,'112859' ,'112871' ,'112883' ,'112891' ,'112904' ,'11291

Re: [PERFORM] LIKE query running slow

2003-09-24 Thread Rod Taylor
On Tue, 2003-09-23 at 20:24, Garrett Bladow wrote: > Recently we upgraded the RAM in our server. After the install a LIKE query that used > to take 5 seconds now takes 5 minutes. We have tried the usual suspects, VACUUM, > ANALYZE and Re-indexing. > > Any thoughts on what might have happened? W

Re: [PERFORM] LIKE query running slow

2003-09-24 Thread Josh Berkus
Garrett, > Recently we upgraded the RAM in our server. After the install a LIKE query that used to take 5 seconds now takes 5 minutes. We have tried the usual suspects, VACUUM, ANALYZE and Re-indexing. > > Any thoughts on what might have happened? Bad RAM? Have you tested it? -- -Josh Berk

Re: [PERFORM] restore time: sort_mem vs. checkpoing_segments

2003-09-24 Thread Dennis Bjorklund
On Tue, 23 Sep 2003, Bruce Momjian wrote: > With the new warning about too-frequent checkpoints, people have actual > feedback to encourage them to increase checkpoint_segments. One issue > is that it is likely to recommend increasing checkpoint_segments during > restore, even if there is no valu

Re: [PERFORM] LIKE query running slow

2003-09-24 Thread Garrett Bladow
On Tue, 23 Sep 2003, Josh Berkus wrote: > Garrett, > > > Recently we upgraded the RAM in our server. After the install a LIKE query > that used to take 5 seconds now takes 5 minutes. We have tried the usual > suspects, VACUUM, ANALYZE and Re-indexing. > > > > Any thoughts on what might have ha

Re: [PERFORM] Performance issue

2003-09-24 Thread Joseph Bove
Peter, One possibility is to drop all the indexes, do the insert and re-add the indexes. The more indexes that exist and the more rows that exist, the more costly the insert. Regards, Joseph At 05:48 PM 9/24/2003 +1200, peter wrote: Hello, I have been trying to get my Postgres database to d

Re: [PERFORM] Index problem

2003-09-24 Thread Tomasz Myrta
Hi, I have a table containing columns: "END_DATE" timestamptz NOT NULL "REO_ID" int4 NOT NULL and i am indexed "REO_ID" coulumn. I have a query: select "REO_ID", "END_DATE" from "PRIORITY_STATISTICS" where "REO_ID" IN ('112851' ,'112859' ,'112871' ,'112883' ,'112891' ,'112904' ,'112915'

Re: [PERFORM] Performance issue

2003-09-24 Thread Richard Jones
get rid of any unnecessary indexes? i've found that droping indexes and re-creating them isn't usually worth the effort mount the disk with the noatime option which saves you the time involved in updating the last access time on files make sure you're doing all the inserts in one transaction..

Re: [PERFORM] Index problem

2003-09-24 Thread Matt Clark
> What causes this behaviour? is there any workaround? Suggestions? > How many rows are there in the table, and can you post the 'explain analyze' for both queries after doing a 'vacuum verbose analyze [tablename]'? Cheers Matt ---(end of broadcast)--

Re: [PERFORM] Performance issue

2003-09-24 Thread Sean Chittenden
> My statistics(Athlon 1.8Ghz) > > 20,000 itemsTakes on average 0.078seconds/room > 385,000 items Takes on average .11seconds/room > 690,000 items takes on average .270seconds/room > 1,028,000 items Takes on average .475seconds/room [snip] > I a

Re: [PERFORM] Performance issue

2003-09-24 Thread Rod Taylor
> 20,000 itemsTakes on average 0.078seconds/room > 385,000 items Takes on average .11seconds/room > 690,000 items takes on average .270seconds/room > 1,028,000 items Takes on average .475seconds/room > > As can be seen the time taken to process each room increas

[PERFORM] upping checkpoints on production server

2003-09-24 Thread Robert Treat
All this talk of checkpoints got me wondering if I have them set at an optimum level on my production servers. I noticed the following in the docs: "There will be at least one 16 MB segment file, and will normally not be more than 2 * checkpoint_segments + 1 files. You can use this to estimate sp

Re: [PERFORM] upping checkpoints on production server

2003-09-24 Thread Tom Lane
Robert Treat <[EMAIL PROTECTED]> writes: > In .conf file I have default checkpoints set to 3, but I noticed that in > my pg_xlog directory I always seem to have at least 8 log files. Since > this is more than the suggested 7, I'm wondering if this means I ought > to bump my checkpoint segments up t

Re: [PERFORM] osdl-dbt3 run results - puzzled by the execution

2003-09-24 Thread Manfred Koizar
On Fri, 19 Sep 2003 11:35:35 -0700, Jenny Zhang <[EMAIL PROTECTED]> wrote: >I posted more results as you requested: Unfortunately they only confirm what I suspected earlier: >> 2) -> Index Scan using i_ps_suppkey on partsupp >> (cost=0.00..323.16 rows=80 width=34) >>

Re: [HACKERS] [PERFORM] osdl-dbt3 run results - puzzled by the execution

2003-09-24 Thread Tom Lane
Manfred Koizar <[EMAIL PROTECTED]> writes: > Cutting down the number of heap page fetches if PF1 * L > P and P < > effective_cache_size seems like an obvious improvement, but I was not > able to figure out where to make this change. Maybe it belongs into > costsize.c near > run_cost += outer