[ADMIN] Timestamps and performances problems

2002-04-15 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)

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] 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

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