Re: [GENERAL] JOIN work somehow strange on simple query

2006-12-05 Thread Richard Huxton
Anton wrote: Hi. I have a performance problem with this simple query: Please post to one list at a time Anton. I'll see you over on the performance list. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 2: Don't 'kill -9' the po

Re: [GENERAL] JOIN work somehow strange on simple query

2006-12-05 Thread Anton
Hi. I have a performance problem with this simple query: SELECT collect_time FROM n_traffic JOIN n_logins USING (login_id) WHERE n_logins.account_id = '1655' ORDER BY collect_time LIMIT 1; I must add that is occurs when there is no rows in n_traffic for these login_id's. Where there is at least

[GENERAL] JOIN work somehow strange on simple query

2006-12-05 Thread Anton
Hi. I have a performance problem with this simple query: SELECT collect_time FROM n_traffic JOIN n_logins USING (login_id) WHERE n_logins.account_id = '1655' ORDER BY collect_time LIMIT 1; Limit (cost=0.00..2026.57 rows=1 width=8) (actual time=5828.681..5