Re: [PERFORM] Combining two bitmap scans out performs a single regular index scan?

2007-12-08 Thread Mark Mielke
Tom Lane wrote: Mark Mielke <[EMAIL PROTECTED]> writes: To find records after a certain time, I must do one of: select * from icpric where audtdate > ? or (audtdate = ? and audttime > ?) In recent releases (at least 8.2, don't remember about 8.1), a row comparison is what you want:

Re: [PERFORM] Combining two bitmap scans out performs a single regular index scan?

2007-12-08 Thread Tom Lane
Mark Mielke <[EMAIL PROTECTED]> writes: > To find records after a certain time, I must do one of: > select * from icpric where audtdate > ? or (audtdate = ? and > audttime > ?) In recent releases (at least 8.2, don't remember about 8.1), a row comparison is what you want: WHERE (audd

[PERFORM] Combining two bitmap scans out performs a single regular index scan?

2007-12-08 Thread Mark Mielke
) Time: 0.880 ms Sample execution times: PCCYBER=# select itemno, audtdate, audttime from icpric where audtdate > 20071207 or (audtdate = 20071207 and audttime > 23434145); itemno | audtdate | audttime +--+-- MB-AS-M2-CROSSHAIR | 2007120

Re: [PERFORM] Cost-Based Vacuum Delay tuning

2007-12-08 Thread Alvaro Herrera
Guillaume Cottenceau wrote: > I have noticed that others (Alvaro, Joshua) suggest to set > vacuum_cost_delay as low as 10 or 20 ms, My suggestion is to set it as *high* as 10 or 20 ms. Compared to the original default of 0ms. This is just because I'm lazy enough not to have done any measuring o