Re: [PERFORM] How to improve speed of 3 table join &group (HUGE tables)

2007-10-18 Thread John Major
sequence_alignment) group by sf.library_id, fio.clip_type The index is used... but the cost gets worse! it goes from: 11831119 -TO- 53654888 Actually... The new query executes in ~ 15 minutes... which is good enough for me for now. Thanks Nis! john Heikki Linnakangas wrote: John Major wrote

Re: [PERFORM] How to improve speed of 3 table join &group (HUGE tables)

2007-10-18 Thread John Major
=16 John Nis Jørgensen wrote: John Major skrev: I am trying to join three quite large tables, and the query is unbearably slow(meaning I can't get results in more than a day of processing). I've tried the basic optimizations I understand, and nothing has improved the execute spe

[PERFORM] How to improve speed of 3 table join &group (HUGE tables)

2007-10-18 Thread John Major
q Scan on sequence_alignment sa (cost=1.00..110379294.60 rows=467042560 width=4) 15 record(s) selected [Fetch MetaData: 0/ms] [Fetch Data: 0/ms] Thanks in advance! John Major ---(end of broadcast)-

[PERFORM] Help w/speeding up range queries?

2006-10-31 Thread John Major
Hello- #I am a biologist, and work with large datasets (tables with millions of rows are common). #These datasets often can be simplified as features with a name, and a start and end position (ie: a range along a number line. GeneX is on some chromosome from position 10->40) I store these