Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-18 Thread Chris Travers
Andre Felipe Machado wrote: Postgresql uses around 30% cpu and hard disk heavily (not so as vacuum) at all executions. Firebird uses around 40% cpu and hard disk heavily at the first execution. The second execution uses around 60% cpu and **NO** disk activity. The previously cited query running

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-14 Thread Jim C. Nasby
On Tue, Mar 14, 2006 at 09:02:49AM -0300, andremachado wrote: > Hello, > Attached is a file containing the problematic queries cited yesterday, with > "explain", "\di" and "show all" outputs. > The first one finished in almost 4 hours. Firebird for windows finished in > 1m30s. > The second one CRA

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-14 Thread Jim C. Nasby
On Fri, Mar 10, 2006 at 10:39:57PM -0300, Andre Felipe Machado wrote: > It seems that effective_cache_size does not tell postgresql to actually > use windows disk cache. No, it just tells PostgreSQL how much cache memory it should expect to have. > What parameter must be configured? > Do you have

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-14 Thread Merlin Moncure
On 3/14/06, andremachado <[EMAIL PROTECTED]> wrote: > Unfortunately, the first query simply returned the same estimated costs by the > planner. Can you try making a big increase to work_mem .conf parameter (as much as is reasonalbe) and see if that helps either query? ok, thats understandable. yo

[PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-14 Thread andremachado
Hello, Many thanks for your suggestions. I am trying to optimize server configs, as (presumed) my friend already optimized his queries and firebird windows is executing them fast. You could see at the new attached file the results of the queries rewrite. Unfortunately, the first query simply return

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-14 Thread Merlin Moncure
On 3/14/06, andremachado <[EMAIL PROTECTED]> wrote: > Hello, > Attached is a file containing the problematic queries cited yesterday, with > "explain", "\di" and "show all" outputs. > The first one finished in almost 4 hours. Firebird for windows finished in > 1m30s. > The second one CRASHED after

[PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-14 Thread andremachado
Hello, Attached is a file containing the problematic queries cited yesterday, with "explain", "\di" and "show all" outputs. The first one finished in almost 4 hours. Firebird for windows finished in 1m30s. The second one CRASHED after some hours, without finishing. The error message is at the file

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance

2006-03-13 Thread Scott Marlowe
On Mon, 2006-03-13 at 12:11, andremachado wrote: > Hello, > Attached is the text file containing the last rounds of configurations. > This time, used "show all" just before issuing each relevant "explain analyze" > to ensure available information. > Note that the last runs are being executed concur

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-13 Thread Josh Berkus
Andre, > http://candle.pha.pa.us/main/writings/pgsql/hw_performance/ > brought some light over the subject. For few users, could be a viable > alternative. That article is very old. Read this instead: http://www.powerpostgresql.com/PerfList > select count(distinct NF.ID_NF ) as contagem, DE.AM_

[PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-13 Thread andremachado
Hello, Attached is the text file containing the last rounds of configurations. This time, used "show all" just before issuing each relevant "explain analyze" to ensure available information. Note that the last runs are being executed concurrently with other problematic query that is consuming 100%

[PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-10 Thread Andre Felipe Machado
Hello, I got good results on tuning postgresql performance for my friend. One of the queries took almost 10 minutes. Now it completes on 26 miliseconds! (at the second run) A combination of query otimization, indexes choosing (with some droping and clustering), server parameters reconfigurations.

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-09 Thread David Brown
Andre Felipe Machado wrote: It seems that Firebird windows can use adequately as much ram it finds and postgresql windows can not. PostgreSQL relies on the OS cache to utilize RAM. Make sure that most of the RAM is 'available' so Windows can do its thing. effective_cache_size should be set

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-09 Thread PFC
I hope tomorrow execute explain with the bitmapscan and seqscan enabled. bitmapscans are almost always faster? Like all the rest, they're just a tool, which works great when used in its intended purpose : - Fetching just a few percent of the rows from a table is better served by an in

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-09 Thread Carlos Henrique Reimer
Andre,   Could not Postgresql file cache being killed by firebird activity?Haven´t you tried decrease ramdom_page_cost to 3 or 2?It would be better if only one person will make configuration changes, otherwise it will be difficult to measure each configuration change impact.ReimerAndre Felipe Mac

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-07 Thread Andre Felipe Machado
Hello, Many thanks for the valuable suggestions and insights. The defaults enable_bitmapscan and enable_seqscan were altered by my friend. He already re enabled them (maybe even while I was trying some of the queries). The machine is a P4 3.2GHz, 1 GBram, sata hd, windows 2000. I did not used pg on

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance

2006-03-07 Thread Tom Lane
Scott Marlowe <[EMAIL PROTECTED]> writes: > So, do you see any obvious, low hanging fruit here? It would help if we were being told the whole truth about the settings being used. The first few plans are clearly suffering from the "enable_seqscan = off" error, but the last few don't seem to be. I

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance

2006-03-07 Thread Alvaro Herrera
Scott Marlowe wrote: > On Tue, 2006-03-07 at 11:15, Alvaro Herrera wrote: > > Scott Marlowe wrote: > > > > > Lastly, I noticed that after you clusters on all your indexes, the query > > > planner switched from a merge join to a hash join, and it was slower. > > > You might wanna try turning off h

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance

2006-03-07 Thread Scott Marlowe
On Tue, 2006-03-07 at 11:15, Alvaro Herrera wrote: > Scott Marlowe wrote: > > > Lastly, I noticed that after you clusters on all your indexes, the query > > planner switched from a merge join to a hash join, and it was slower. > > You might wanna try turning off hash joins for a quick test to see

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance

2006-03-07 Thread Alvaro Herrera
Scott Marlowe wrote: > Lastly, I noticed that after you clusters on all your indexes, the query > planner switched from a merge join to a hash join, and it was slower. > You might wanna try turning off hash joins for a quick test to see if > merge joins are any faster. Anyway please note that cl

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance

2006-03-07 Thread Scott Marlowe
On Tue, 2006-03-07 at 10:29, andremachado wrote: > Hello, > A friend asked for help to accelerate some postgresql queries on postgresql > 8.1.2 for windows. > He is comparing with firebird. > Firebird was being up to 90 times faster at some queries. > Attached is a gziped text file containing some

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-07 Thread Carlos Henrique Reimer
Andre,   I noticed that enable_bitmapscan and enable_seqscan are off, is there a reason for it? Have you tried with enable_bitmapscan on?   How much RAM do you have? What kind of disks are being used?   Beste regards,   Reimer 55-47-33270878 Blumenau - SC - Brazil andremachado <[EMAIL PR

Re: [PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-07 Thread Joshua D. Drake
andremachado wrote: Hello, A friend asked for help to accelerate some postgresql queries on postgresql 8.1.2 for windows. He is comparing with firebird. Firebird was being up to 90 times faster at some queries. Attached is a gziped text file containing some steps I tried on a simple example query

[PERFORM] firebird X postgresql 8.1.2 windows, performance comparison

2006-03-07 Thread andremachado
Hello, A friend asked for help to accelerate some postgresql queries on postgresql 8.1.2 for windows. He is comparing with firebird. Firebird was being up to 90 times faster at some queries. Attached is a gziped text file containing some steps I tried on a simple example query. Could get improvemen