in reply to indexing segments
You could create a database table such as:
create table elements ( position int8, start_value int8, end_value int8 );
Then, after filling the table, this query would give you the desired result:
select position from element where end_value >= 50000 and start_value +<= 1000000;
This effectively gives the tree hassle to the database.
UPDATE: Changed the SQL query to reflect the original query in the question (and a typo)
--tidiness is the memory loss of environmental mnemonics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: indexing segments
by Abigail-II (Bishop) on Oct 10, 2003 at 12:53 UTC | |
by EvdB (Deacon) on Oct 10, 2003 at 13:03 UTC | |
by glwtta (Hermit) on Oct 10, 2003 at 13:35 UTC | |
by EvdB (Deacon) on Oct 10, 2003 at 13:50 UTC | |
|
Re: Re: indexing segments
by glwtta (Hermit) on Oct 10, 2003 at 13:21 UTC |