P is for Practical | |
PerlMonks |
Re: Choosing a database for a new projectby dws (Chancellor) |
on Oct 15, 2002 at 20:39 UTC ( [id://205513]=note: print w/replies, xml ) | Need Help?? |
I plan on having a lot (at least 1000) and would like to have some sort of search method on the pictures. I'd like to use some sort of database, either mySQL or Berkeley_DB (both of which are on my webserver) that can be easily searched using one or more criteria to return relevant photos.
Unless you need experience using a database more than you need "soon", you'll be better off using a flat file. One thousand records isn't very much (if you have about 80 characters of data per line, that's only 80K). The overhead of searching a relatively small flat file is going to be a lot less than the overhead imposed by a database. I would go simple at first. Use a comma-delimited file, and get at it through DBI via DBD::CSV (or some other DBD:: that supports text files). This will give you the programmatic experience of using a database. Then slip MySQL in undereath at a later date.
In Section
Seekers of Perl Wisdom
|
|