in reply to Re: Re: Re: Question about properly laying out a database
in thread Question about properly laying out a database
No. All he has to do to find the cars with make = 'volvo' (or some normalized key like 'make_7') is say my $cars = $make_db{'volvo'} and have that return a ref to an array of car IDs (serialized by Storable). Then he does the same for each of the other criteria, and finds the overlapping set.
You do access records by ID, because you make multiple indexes (dbm files) which are each using a different criterion of the search as a key. It's kind of a roll-your-own MySQL.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Question about properly laying out a database
by dws (Chancellor) on Dec 12, 2001 at 12:40 UTC | |
by perrin (Chancellor) on Dec 12, 2001 at 23:13 UTC |