in reply to fast+generic interface for range-based indexed retrieval
SQL could then do the trick:
or if the number of indexed keys is not too big:SELECT * FROM TABLE WHERE KEY_FIELD >= 'sequence_begin' AND KEY_FIELD +<= 'sequence_end'
SELECT * FROM TABLE WHERE KEY_FIELD IN (key1, key2, key3, ... , keyN)
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fast+generic interface for range-based indexed retrieval
by duckyd (Hermit) on Dec 10, 2008 at 23:22 UTC | |
by CountZero (Bishop) on Dec 11, 2008 at 10:38 UTC | |
by Anonymous Monk on Dec 12, 2008 at 01:27 UTC |