Re: [PERFORM] PostgreSQL performance problem -> tuning

2003-08-06 Thread Mendola Gaetano
"Yaroslav Mazurak" <[EMAIL PROTECTED]> > Problem is that SQL statement (see below) is running too long. With > current WHERE clause 'SUBSTR(2, 2) IN ('NL', 'NM') return 25 records. > With 1 record, SELECT time is about 50 minutes and takes approx. 120Mb > RAM. With 25 records SELECT takes about

Re: [PERFORM] I can't wait too much: Total runtime 432478.44 msec

2003-08-02 Thread Mendola Gaetano
From: ""Fernando Papa"" <[EMAIL PROTECTED]> > AND upper(cont_publicacion.generar_Vainilla) = 'S' > Filter: ((upper((generar_vainilla)::text) = 'S'::text) AND (fecha_publicacion = (subplan))) using a functional index on this field should help create index idx_generar_vainilla_ci on cont_public

[PERFORM] Wrong rows number expected

2003-07-25 Thread Mendola Gaetano
Hi all, last week Josh Berkus point my attenction ( see post Wrong plan or what ) to the fact that in this select: select * from user_logs ul, user_data ud, class_default cd where ul.id_user = ud.id_user and ud.id_class = cd.id_class and cd.id_provider = 39; The planner

Re: [PERFORM] Wrong plan or what ?

2003-07-22 Thread Mendola Gaetano
"Josh Berkus" <[EMAIL PROTECTED]> > Gaetano, > > > QUERY PLAN > > Hash Join (cost=265.64..32000.76 rows=40612 width=263) (actual > > time=11074.21..11134.28 rows=10 loops=1) > >Hash Cond: ("outer".id_user = "inner".id_user) > >-> Seq Scan on user_logs ul (cost=0.00..24932.65 rows=125896

Re: [PERFORM] Wrong plan or what ?

2003-07-22 Thread Mendola Gaetano
Forget my PS to last message. ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [PERFORM] Wrong plan or what ?

2003-07-22 Thread Mendola Gaetano
"Josh Berkus" <[EMAIL PROTECTED]> > Gaetano, > > > SELECT * from user_logs where id_user in ( > > 10943, 10942, 10934, 10927, 10910, 10909 > > ); > > [SNIPPED] > > > Why the planner or the executor ( I don't know ) do not follow > > the same strategy ? > > It is, actually, according to th

[PERFORM] Wrong plan or what ?

2003-07-22 Thread Mendola Gaetano
Hi all, I'm running Postgres7.3.3 and I'm performing this simple select: select * from user_logs ul, user_data ud, class_default cd where ul.id_user = ud.id_user and ud.id_class = cd.id_class and cd.id_provider = 39; these are the number of rows for each table: user_logs