Re: [PERFORM] Fwd: Not so simple query and a half million loop

2008-12-18 Thread Craig Ringer
Daniel Cristian Cruz wrote: > No one knows why I got "actual time=0.014..0.570 rows=30 loops=511222" > and "actual time=0.005..0.006 rows=1 loops=15158976"? You've already tried increasing the stats targets and ANALYZEing, so: Please post the output of VACUUM ANALYZE VERBOSE on the tables of int

[PERFORM] Fwd: Not so simple query and a half million loop

2008-12-02 Thread Daniel Cristian Cruz
Hi, all! No one knows why I got "actual time=0.014..0.570 rows=30 loops=511222" and "actual time=0.005..0.006 rows=1 loops=15158976"? With: cu.cal_user_type = 'u' AND cu.cal_recur_date = COALESCE((SELECT cd.cal_start FROM egw_cal_dates icd WHERE icd.cal_id = cd.cal_id AND icd.cal_start = cd.cal