[ADMIN] More question about plans & explain (long)

2002-04-10 Thread Nick Fankhauser
Thanks to everyone who responded to my question about outer joins. Now I have some more . I'm trying to learn what explain can tell me & whether there are any reasonable ways to push it's choices in one direction based on my knowledge of the tables without really screwing up general performance.

Re: [ADMIN] performance "tests"

2002-04-10 Thread Bruce Momjian
Tom Lane wrote: > Raphael Bauduin <[EMAIL PROTECTED]> writes: > > At some times, it seems to hang: it doesn't insert any rows for more > > than 10 seconds. At that time, the postmaster process takes 0%. Why is > > that? > > At a guess, you're seeing the syncer daemon flushing a lot of dirty > ker

Re: [ADMIN] performance "tests"

2002-04-10 Thread Bruce Momjian
Naomi Walker wrote: > From my many years of Informix knowledge, we noticed that checkpoints, > during high activity times, did take a long time, because it locked the > shared memory segment. We found that setting the checkpoint knobs to flush > almost constantly, overall, was much better for

Re: [ADMIN] performance "tests"

2002-04-10 Thread Naomi Walker
From my many years of Informix knowledge, we noticed that checkpoints, during high activity times, did take a long time, because it locked the shared memory segment. We found that setting the checkpoint knobs to flush almost constantly, overall, was much better for performance. Looking in po

Re: [ADMIN] performance "tests"

2002-04-10 Thread Tom Lane
Raphael Bauduin <[EMAIL PROTECTED]> writes: > At some times, it seems to hang: it doesn't insert any rows for more > than 10 seconds. At that time, the postmaster process takes 0%. Why is > that? At a guess, you're seeing the syncer daemon flushing a lot of dirty kernel disk buffers out to disk,

Re: [ADMIN] Timestamps and performances problems

2002-04-10 Thread Tom Lane
Jean-Christophe ARNU (JX) <[EMAIL PROTECTED]> writes: > When I use timestamps + interval in where clauses, query performance is > slowed down by a factor of 20 or 30 For exemple : > select timestamp,value > from measure > where timestamp(now() - '1 hour'::interval) >

Re: [ADMIN] performance "tests"

2002-04-10 Thread Oliver Elphick
On Wed, 2002-04-10 at 14:00, Raphael Bauduin wrote: ... > dpkg -l postgresql > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) > ||/ Name

Re: [ADMIN] Timestamps and performances problems

2002-04-10 Thread Dan Langille
On 10 Apr 2002 at 10:55, Dan Langille wrote: > If there is an index on that field, casting to a timestamp may help the > optimization. Therefore I suggested that it be tried. And using "explain" will show the plan for that command. I recommend using that too. -- Dan Langille The FreeBSD Dia

Re: [ADMIN] Timestamps and performances problems

2002-04-10 Thread Dan Langille
On 10 Apr 2002 at 10:44, JX wrote: > Le Wed, 10 Apr 2002 09:27:09 -0400 > "Dan Langille" <[EMAIL PROTECTED]> me disait que : > > > On 10 Apr 2002 at 9:13, JX wrote: > > > > > Le Wed, 10 Apr 2002 09:06:55 -0400 > > > "Dan Langille" <[EMAIL PROTECTED]> me disait que : > > > > > > > On 10 Apr 200

Re: [ADMIN] Timestamps and performances problems

2002-04-10 Thread JX
Le Wed, 10 Apr 2002 09:27:09 -0400 "Dan Langille" <[EMAIL PROTECTED]> me disait que : > On 10 Apr 2002 at 9:13, JX wrote: > > > Le Wed, 10 Apr 2002 09:06:55 -0400 > > "Dan Langille" <[EMAIL PROTECTED]> me disait que : > > > > > On 10 Apr 2002 at 11:51, Gaetano Mendola wrote: > > > > > > > "Jea

Re: [ADMIN] Timestamps and performances problems

2002-04-10 Thread Dan Langille
On 10 Apr 2002 at 11:51, Gaetano Mendola wrote: > "Jean-Christophe ARNU (JX)" <[EMAIL PROTECTED]> wrote: > > Hello all. > > I've a performance problem on specific requests : > > > > When I use timestamps + interval in where clauses, query performance is > > slowed down by a factor of 20 or 3

[ADMIN] performance "tests"

2002-04-10 Thread Raphael Bauduin
Hi, having read on this list (some time ago) that inserts could become slow when there are foreign keys constraints, I wanted to test it. So I created a DB with 5 tables (T1 -> T5) with, for 0

Re: [ADMIN] Timestamps and performances problems

2002-04-10 Thread Gaetano Mendola
"Jean-Christophe ARNU (JX)" <[EMAIL PROTECTED]> wrote: > Hello all. > I've a performance problem on specific requests : > > When I use timestamps + interval in where clauses, query performance is > slowed down by a factor of 20 or 30 For exemple : > select timestamp,value > from measu

[ADMIN] Timestamps and performances problems

2002-04-10 Thread JX
Hello all. I've a performance problem on specific requests : When I use timestamps + interval in where clauses, query performance is slowed down by a factor of 20 or 30 For exemple : select timestamp,value from measure where timestamp(now() - '1 hour'::interval